设为首页 加入收藏

TOP

Android开发之EditText组件(一)
2014-11-24 14:14:35 来源: 作者: 【 】 浏览:0
Tags:Android 开发 EditText 组件

输入特定字符


效果图:



< xml version="1.0" encoding="utf-8" >


android:layout_width="wrap_content"


android:layout_height="fill_parent"


android:orientation="vertical" >




android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:stretchColumns="1" >






android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:layout_gravity="center"


android:text="@string/user" />




android:layout_width="wrap_content"


android:layout_height="wrap_content" />







android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:layout_gravity="center"


android:text="@string/pass" />




android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:inputType="textPassword" />







android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:text="@string/twopass" />




android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:inputType="textPassword" />







android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:text="@string/email" />




android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:inputType="textEmailAddress" />







android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:layout_gravity="center"


android:text="@string/authcode" />




android:layout_width="wrap_content"


android:layout_height="wrap_content" >





android:layout_width="80dp"


android:layout_height="wrap_content" />




android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:background="@drawable/p2" />




android:id="@+id/changeId"


android:layout_width="wrap_content"


android:layout_height="wrap_content"


android:text="@string/change" />









android:layout_width="wrap_content"


android:layout_height="wrap_content" />




android:layout_width="match_parent"


android:layout_height="wrap_content"


android:layout_centerInParent="true"


android:text="@string/text"


android:id="@+id/textId"


/>






首页 上一页 1 2 下一页 尾页 1/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Android开发之Intent传值实例 下一篇Android开发之自定义带边框的Text..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: