Android电话短信拦截项目总结之 项目中线性布局比重使用
来源:互联网 发布:centos 防止ddos 编辑:程序博客网 时间:2024/04/30 07:47
效果图:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
android:orientation="vertical" >
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="50dp"
android:hint="按名称,电话号码搜索"
android:background="@drawable/title_bar_bg"
/>
<!-- layout_weight默认值是0,ListView是1,其他两个布局是0 -->
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
>
</ListView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="添加"
/>
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="删除"
/>
</LinearLayout>
</LinearLayout>
0 0
- Android电话短信拦截项目总结之 项目中线性布局比重使用
- Android电话短信拦截项目总结之 项目中sqlite运用
- Android电话短信拦截项目总结之 多选框(CheckBox)
- Android电话短信拦截项目总结之 开发工具
- Android电话短信拦截项目总结之 SQLite数据库简介和使用
- Android电话短信拦截项目总结之 项目源码及相关学习资料
- Android电话短信拦截项目总结之 单选框(RadioButton)的使用方法
- Android电话短信拦截项目总结之 checkbox和listview抢焦点
- Android项目:手机安全卫士(12)—— 通讯卫士之电话短信黑名单设置与拦截
- Android项目:手机安全卫士(12)—— 通讯卫士之电话短信黑名单设置与拦截
- Android小项目之--电话与短信服务
- android 短信和电话拦截
- android 短信和电话拦截
- Android 电话和短信拦截
- 02读书笔记之创建android studio项目及线性布局
- Android小项目之--电话与短信服务(附源码)
- Android之电话拦截
- Android项目:手机安全卫士(13)—— 通讯卫士之电话拦截与挂断
- SQLServer版本查看语句
- sudo gedit 错误:Gtk-WARNING **: cannot open display: :0.0
- 机器学习常见算法分类汇总
- org.hibernate.cache.NoCachingEnabledException: Second-level cache is not enabled for usage
- Java使用jackson操作Json格式数据
- Android电话短信拦截项目总结之 项目中线性布局比重使用
- JQuery checkbox全选,反选实例
- SDUT2156 Fairy tale(第一届省赛题目)(模拟)
- 帮助你自动生成已经过去的时间的jQuery插件 – Smart Time Ago
- 打印消耗时间
- 通过游标循环插入数据
- java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 解决方案
- Android主线程不能访问网络异常解决办法 NetworkOnMainThreadException错误
- 智能指针