Advertisement

使用Android BottomSheetDialog

阅读量:

第一步:
创建一个名为dialog.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="80dp">
    
    <TextView
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:gravity="center"
        android:text="社交"
        android:textSize="24sp" />
    
    <TextView
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_

全部评论 (0)

还没有任何评论哟~