今天尝试了一下自定义dialog。
想做成上传头像的那种,有两个button,一个作为手机摄像头拍摄用,一个调用手机SD卡的图库。
先是布局文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#11ffffff" android:layout_gravity="center" android:orientation="vertical" > <TextView android:layout_width="match_parent" android:layout_height="0dp"