Android 开发即时聊天工具 YQ :(二) 完成登陆界面
2012-10-06 22:18
477 查看
话说放假人都玩去了,咱还在写代码,唉,,,还得慢慢学,,,废话不多了,进入主题
先上图:
界面是仿QQ 安卓客户端的,参考了网上的代码,图片素材直接解压安卓手机QQ就有了,话说没做商业用途,不算侵权吧?
代码很简单就一个布局文件,
谢谢大家支持!欢迎一起学习交流!
转载请注明出处:http://blog.csdn.net/mimitracely
先上图:
界面是仿QQ 安卓客户端的,参考了网上的代码,图片素材直接解压安卓手机QQ就有了,话说没做商业用途,不算侵权吧?
代码很简单就一个布局文件,
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/default_bg" android:orientation="vertical" > <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="60dip" android:layout_marginLeft="15dip" android:layout_marginRight="15dip" android:background="@drawable/login_bg" > <!-- 头像背景和头像 --> <ImageView android:id="@+id/iv_head" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/login_head"/> <EditText android:id="@+id/et_account" android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="number" android:maxLength="10" android:textSize="16sp" android:hint="输入账号" android:background="@drawable/input_login" android:layout_marginTop="5.0dip" android:layout_toRightOf="@+id/iv_head"/> <!-- 密码 --> <EditText android:id="@+id/et_password" android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="16sp" android:inputType="textPassword" android:maxLength="16" android:background="@drawable/input_login" android:layout_below="@+id/et_account" android:layout_toRightOf="@+id/iv_head"/> <CheckBox android:id="@+id/cb_remember" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="记住密码" android:checked="true" android:button="@drawable/cb_check" android:layout_alignBaseline="@+id/btn_login"/> <Button android:id="@+id/btn_login" android:layout_width="100dip" android:layout_height="38dip" android:layout_alignParentRight="true" android:layout_below="@+id/et_password" android:layout_marginRight="12.0dip" android:layout_marginTop="15dip" android:textSize="16sp" android:text="登录" /> </RelativeLayout> <TableLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginRight="20.0dip" android:stretchColumns="1"> <TableRow> <CheckBox android:id="@+id/cb_hideLogin" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/checkBox" android:text="隐身登录"/> <CheckBox android:id="@+id/cb_openVibra" android:layout_gravity="right" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/checkBox" android:text="开启震动"/> </TableRow> <TableRow> <CheckBox android:id="@+id/cb_acceptGroupMsg" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/checkBox" android:text="接收群消息"/> <CheckBox android:id="@+id/cb_silent" android:layout_gravity="right" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/checkBox" android:text="静音登录"/> </TableRow> </TableLayout> </LinearLayout>
谢谢大家支持!欢迎一起学习交流!
转载请注明出处:http://blog.csdn.net/mimitracely
相关文章推荐
- Android 开发即时聊天工具 YQ :(三) 实现登陆功能
- Android 开发即时聊天工具 YQ :(三) 实现登陆功能
- Android 开发即时聊天工具 YQ :(四) 获取好友列表
- Android开发(6)--完成登陆界面的数据保存回显的操作
- Android 开发即时聊天工具 YQ 《更新》(源码下载)
- Android 开发即时聊天工具 YQ :(八) 添加/删除好友
- Android 开发即时聊天工具 YQ :(六) 最近会话列表
- Android 开发即时聊天工具 YQ :(五) 发送消息
- Android 开发即时聊天工具 YQ :(七) 气泡聊天
- Android开发之完成登陆界面的数据保存回显操作实例
- 【Android】 开发即时聊天工具 YQ (仿QQ) 教程:目录
- Android 开发即时聊天工具 YQ :(一) Socket 初步
- android移动应用开发学习笔记(五)——模拟qq登陆界面
- Android 开发之可视化界面工具
- Android APP 登陆界面开发 UI设计
- Android开发实践(五)App的登陆界面
- Android应用开发系列(二)登陆界面
- Android开发丶使用DialogFragment完成炫酷的弹窗登录界面并完成DialogFragment与宿主Fragment的通信
- android的UI开发中如何确定登陆界面
- Android界面开发工具DroidDraw