聊天软件登陆界面的实现
来源:互联网 发布:植物大战僵尸不用网络 编辑:程序博客网 时间:2024/05/16 03:32
最近跟着网上的视频开始《匿名》软件的开发
首先是开发软件用到的4个Layout布局:第一个是登陆界面,第二个是我们登陆后显示消息列表的界面,用了一个listview,第三个是我们发布状态的界面,第四个是我们评论别人状态的界面,同样显示别人的评论也是一个listview。下次篇文章将详细介绍连接网络类的代码,敬请期待。
<!--登陆界面--><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" android:orientation="vertical" android:paddingTop="50dp"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/phone" android:textAppearance="?android:textAppearanceLarge" /> <EditText android:id="@+id/etPhoneNum" android:layout_width="250dp" android:layout_height="wrap_content" android:inputType="phone" android:singleLine="true" android:textAppearance="?android:textAppearanceLarge" /> </LinearLayout> <Button android:id="@+id/btnGetCode" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/Get_Code" android:textAllCaps="false" android:textAppearance="?android:textAppearanceLarge" android:layout_gravity="center_horizontal" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/code" android:textAppearance="?android:textAppearanceLarge" /> <EditText android:id="@+id/etCodeNum" android:layout_width="250dp" android:layout_height="wrap_content" android:inputType="number" android:singleLine="true" android:textAppearance="?android:textAppearanceLarge" /> </LinearLayout> <Button android:id="@+id/btnLogin" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/login" android:textAppearance="?android:textAppearanceLarge" /> /></LinearLayout>效果图:
<!--消息显示界面--><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent"></ListView></LinearLayout>
效果图:
<!--发布状态界面--><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <EditText android:textAppearance="?android:textAppearanceLarge" android:layout_width="fill_parent" android:layout_height="0dp" android:gravity="left" android:inputType="none" android:layout_weight="1"/> <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="?android:textAppearanceLarge" android:text="@string/SendMessage" android:textAllCaps="false"/></LinearLayout>效果图:
<!--评论界面--><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/tvMessage" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="?android:textAppearanceLarge" /> <ListView android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1"></ListView> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <EditText android:id="@+id/etComment" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btnSendComment" android:background="@android:drawable/ic_menu_send"/> </LinearLayout></LinearLayout>效果图:
1 0
- 聊天软件登陆界面的实现
- 登陆界面软件自动更新功能的实现
- Android学习笔记(一)——仿qq聊天的welcome界面登陆的实现
- QQ界面的MSN聊天软件
- Pyqt4下聊天软件界面的编写
- 聊天登陆之注册界面
- mina 实现的聊天软件
- MINA实现的聊天软件
- 【Android】聊天软件的实现
- 登陆的界面部分实现
- java实现的登陆界面
- 简易登陆界面的实现
- android的登陆界面实现
- MiniTwitter登陆界面的实现
- 简易的聊天界面以及聊天机器人的实现
- Android聊天界面-实现微信式聊天的技巧
- Android泡泡聊天界面的实现
- Android泡泡聊天界面的实现
- Incorrect key file for table '/tmp/....'错误的解决--记录
- Java中的内部类
- 数据库事务(二)
- 在 Windows 中配置 PHP 开发环境
- 网络抓包
- 聊天软件登陆界面的实现
- 识别有效的IP地址和掩码并进行分类统计
- Caffe学习系列(13):数据可视化环境(python接口)配置
- 判断字符串是全中文,windows+GB编码
- android中File文件写的实现
- 在html中写python代码的语法和特点-----基于webpy的http服务器
- iOS开发------本地存储-NSKeyedArchiver & NSKeyedUnarchiver(归档)
- 如何重新签名ipa文件
- java中的多线程包---CompletionService Executor + BlockingQueue