码迷,mamicode.com
首页 > 其他好文 > 详细

系统登陆界面开发及实现之(四)界面登录框组件设置

时间:2015-12-22 09:04:27      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:

开发步骤:

  • 打开res下layout下activity_login.xml
  • 添加TableLayout一个EditText,Button组件对象各二个并设置属性

android:password属性

  • 作用:设置密码框
  • 常量参数:true

代码:

<TableLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:collapseColumn="2"
    android:stretchColum="1">
    <TableRow
         android:layout_width="fill_parent"
         android:layout_height="wrap_content">
      </TableRow>
    <TableRow
         android:layout_width="fill_parent"
         android:layout_height="wrap_content">
      </TableRow>
</TableLayout>
<EditText
       android:id="@+id/txtAccount"
       adnroid:layout_width="fill_parent"
       android:layout_height="wrap_content"
       android:hint="请输入账号:"
       android:textSize="12sp"
       android:textColor="#FFFFFF"/>
<Button
     android:id="@+id/btnRegister"
     android:layout_width="0dp"
     android:layout_height="wrap_content"
     android:text="立即注册"
     android:textSize="15sp"
     android:textColor="#646464"
     android:layout_weight="1"/>

运行:

技术分享

系统登陆界面开发及实现之(四)界面登录框组件设置

标签:

原文地址:http://www.cnblogs.com/zulo/p/5065499.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!