android设置密码框,Android手机卫士之设置密码对话框

本文实现初次设置密码验证过程,首先实现如下效果

0a369a15e5f42a6615b541e7a256b4ae.png

布局如下:

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical">

style="@style/TitleStyle"

android:background="#f00"

android:text="设置密码"

/>

android:id="@+id/et_set_psd"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:hint="设置密码"

/>

android:id="@+id/et_confirm_psd"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:hint="确认密码"

/>

android:layout_width="match_parent"

android:layout_height="wrap_content">

android:id="@+id/bt_submit"

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_weight="1"

android:text="确认" />

android:id="@+id/bt_cancel"

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_weight="1"

android:text="取消" />

其中TitleStyle的代码如下:

true

center

20sp

#000

10dp

#0f0

match_parent

wrap_content

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值