LOGO OA教程 ERP教程 模切知识交流 PMS教程 CRM教程 开发文档 其他文档  
 
网站管理员

Android 开发即时聊天工具 YQ :(二) 完成登陆界面

admin
2013年2月25日 14:17 本文热度 3924

先上图:

 
界面是仿QQ 安卓客户端的,参考了网上的代码,图片素材直接解压安卓手机QQ就有了

代码很简单就一个布局文件

[html]
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  
  2.     android:layout_width="match_parent"  
  3.     android:layout_height="match_parent"  
  4.     android:background="@drawable/default_bg"  
  5.     android:orientation="vertical" >  
  6.     <RelativeLayout android:layout_width="fill_parent"  
  7.         android:layout_height="wrap_content"  
  8.         android:layout_marginTop="60dip"  
  9.         android:layout_marginLeft="15dip"  
  10.         android:layout_marginRight="15dip"  
  11.         android:background="@drawable/login_bg" >  
  12.         <!-- 头像背景和头像 -->  
  13.         <ImageView android:id="@+id/iv_head"  
  14.             android:layout_width="wrap_content"   
  15.             android:layout_height="wrap_content"  
  16.             android:background="@drawable/login_head"/>  
  17.         <EditText android:id="@+id/et_account"  
  18.             android:layout_width="fill_parent"    
  19.             android:layout_height="wrap_content"  
  20.             android:inputType="number"  
  21.             android:maxLength="10"  
  22.             android:textSize="16sp"  
  23.             android:hint="输入账号"  
  24.             android:background="@drawable/input_login"  
  25.             android:layout_marginTop="5.0dip"  
  26.             android:layout_toRightOf="@+id/iv_head"/>  
  27.         <!-- 密码 -->  
  28.         <EditText android:id="@+id/et_password"  
  29.             android:layout_width="match_parent"    
  30.             android:layout_height="wrap_content"  
  31.             android:textSize="16sp"  
  32.             android:inputType="textPassword"  
  33.             android:maxLength="16"  
  34.             android:background="@drawable/input_login"  
  35.             android:layout_below="@+id/et_account"  
  36.             android:layout_toRightOf="@+id/iv_head"/>  
  37.         <CheckBox  
  38.             android:id="@+id/cb_remember"  
  39.             android:layout_width="match_parent"  
  40.             android:layout_height="wrap_content"  
  41.             android:text="记住密码"  
  42.             android:checked="true"  
  43.             android:button="@drawable/cb_check"  
  44.             android:layout_alignBaseline="@+id/btn_login"/>  
  45.         <Button  
  46.             android:id="@+id/btn_login"  
  47.             android:layout_width="100dip"  
  48.             android:layout_height="38dip"  
  49.             android:layout_alignParentRight="true"  
  50.             android:layout_below="@+id/et_password"  
  51.             android:layout_marginRight="12.0dip"  
  52.             android:layout_marginTop="15dip"  
  53.             android:textSize="16sp"  
  54.             android:text="登录" />  
  55.     </RelativeLayout>  
  56.     <TableLayout android:layout_width="match_parent"  
  57.         android:layout_height="wrap_content"  
  58.         android:layout_marginLeft="20.0dip"   
  59.         android:layout_marginRight="20.0dip"  
  60.         android:stretchColumns="1">  
  61.         <TableRow>  
  62.             <CheckBox android:id="@+id/cb_hideLogin"  
  63.                 android:layout_width="wrap_content"   
  64.                 android:layout_height="wrap_content"   
  65.                 style="@style/checkBox"  
  66.                 android:text="隐身登录"/>  
  67.             <CheckBox android:id="@+id/cb_openVibra"  
  68.                 android:layout_gravity="right"  
  69.                 android:layout_width="wrap_content"   
  70.                 android:layout_height="wrap_content"   
  71.                 style="@style/checkBox"  
  72.                 android:text="开启震动"/>  
  73.             </TableRow>  
  74.             <TableRow>  
  75.             <CheckBox android:id="@+id/cb_acceptGroupMsg"  
  76.                 android:layout_width="wrap_content"   
  77.                 android:layout_height="wrap_content"   
  78.                 style="@style/checkBox"  
  79.                 android:text="接收群消息"/>  
  80.             <CheckBox android:id="@+id/cb_silent"  
  81.                 android:layout_gravity="right"  
  82.                 android:layout_width="wrap_content"   
  83.                 android:layout_height="wrap_content"   
  84.                 style="@style/checkBox"  
  85.                 android:text="静音登录"/>  
  86.             </TableRow>  
  87.     </TableLayout>  
  88. </LinearLayout>  

该文章在 2013/2/25 14:17:18 编辑过
关键字查询
相关文章
正在查询...
点晴ERP是一款针对中小制造业的专业生产管理软件系统,系统成熟度和易用性得到了国内大量中小企业的青睐。
点晴PMS码头管理系统主要针对港口码头集装箱与散货日常运作、调度、堆场、车队、财务费用、相关报表等业务管理,结合码头的业务特点,围绕调度、堆场作业而开发的。集技术的先进性、管理的有效性于一体,是物流码头及其他港口类企业的高效ERP管理信息系统。
点晴WMS仓储管理系统提供了货物产品管理,销售管理,采购管理,仓储管理,仓库管理,保质期管理,货位管理,库位管理,生产管理,WMS管理系统,标签打印,条形码,二维码管理,批号管理软件。
点晴免费OA是一款软件和通用服务都免费,不限功能、不限时间、不限用户的免费OA协同办公管理系统。
Copyright 2010-2024 ClickSun All Rights Reserved