一.常见对话框
1.普通对话框
2.单选对话框
3.多选对话框
4.消息提示框
5.自定义对话框
二. 智慧园区登陆界面的案例
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:layout_gravity="left"
android:background="@color/blue"
android:gravity="center"
android:text="@string/login_layout_name"
android:textColor="@color/pink"
android:textSize="36dp"
android:textStyle="bold">
</TextView>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:hint="@string/login_edittext"
android:textColor="@color/blue"
android:gravity="left"
android:textSize="36dp"
android:background="@color/yellow"
android:maxLines="10"
>
</EditText>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/login_password"
android:textColor="@color/blue"
android:gravity="left"
android:textSize="36dp"
android:background="@color/yellow"
android:maxLines="10"
>
</EditText>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginTop="18dp"
android:text="@string/login"
android:background="@color/colorPrimary">
</Button>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginTop="18dp"
android:text="@string/register"
android:background="@color/colorPrimary">
</Button>
</LinearLayout>
效果图:
本文地址:https://blog.csdn.net/weixin_46360804/article/details/107161133
如对本文有疑问, 点击进行留言回复!!
Xamarin 安卓 相机 各种坑 目标API Android 6以后,我选的目标API版本是 Android 10
Android 9.0+软件某些功能突然暴毙:cleartext not permitted
Android : Resource is not a Drawable (color or path)
Flutter问题集锦——Android Studio 4.0.1 在AVD Manger中启动模拟器报“unable to locate abd”
网友评论