1 布局文件
box_about.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/dialog_corner_bg"
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/groupbox_top_raidus_theme"
andr
这篇博客详细记录了如何在Android应用中实现圆角对话框,包括自定义布局文件`box_about.xml`,设置背景`dialog_corner_bg.xml`,编写Java代码实现功能,并展示了调用方法和最终效果。
订阅专栏 解锁全文
1010

被折叠的 条评论
为什么被折叠?



