Android --Search界面样式
Lay_Weight 权重属性的使用
<RelativeLayout 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:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.dr.app.drseamoniter.SearchConditionActivity"
android:background="#F0F0F0"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#F0F0F0"
>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:gravity="center_vertical"
android:padding="5dp"
android:layout_margin="5dp"
>
<ImageView
android:id="@+id/search_area_img"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/search_area_img"
android:gravity="center"
android:layout_weight="2"
/>
<TextView
android:id="@+id/search_area_text"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="2"
android:gravity="center"
android:text="选择区域:"/>
<com.dr.app.drseamoniter.spinner.SearchConditionSpinner
android:id="@+id/search_area_condition"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:gravity="center"
android:layout_weight="1"
/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:gravity="center"
android:padding="5dp"
android:layout_margin="5dp"
>
<ImageView
android:id="@+id/search_dev_img"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/search_dev_img"
android:gravity="center"
android:layout_weight="2"/>
<TextView
android:id="@+id/search_dev_text"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:text="选择设备:"
android:gravity="center"
android:layout_weight="2"/>
<com.dr.app.drseamoniter.spinner.SearchConditionSpinner
android:id="@+id/search_dev_condition"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:gravity="center"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:gravity="center"
android:padding="5dp"
android:layout_margin="5dp"
>
<ImageView
android:id="@+id/search_begintime_img"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/search_time_img"
android:gravity="center"
android:layout_weight="2"/>
<TextView
android:id="@+id/search_begintime_text"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:text="开始时间:"
android:gravity="center"
android:layout_weight="2"/>
<EditText
android:id="@+id/search_begintime_edittext"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="1"
android:background="@null"
android:inputType="text"
android:gravity="center"
android:textSize="15sp"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:gravity="center"
android:padding="5dp"
android:layout_margin="5dp"
>
<ImageView
android:id="@+id/search_endtime_img"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/search_time_img"
android:gravity="center"
android:layout_weight="2"/>
<TextView
android:id="@+id/search_endtime_text"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:gravity="center"
android:text="结束时间:"
android:layout_weight="2"/>
<EditText
android:id="@+id/search_endtime_edittext"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="1"
android:background="@null"
android:inputType="text"
android:gravity="center"
android:textSize="15sp"
/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="5dp"
android:layout_margin="5dp"
>
<Button
android:id="@+id/search_btn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="15dp"
android:background="#0077D9"
android:textColor="@android:color/white"
android:text="查询"/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
参考博客Android:Layout_weight的深刻理解
Android --Search界面样式的更多相关文章
- Android学习系列(40)--Android主题和样式之系统篇(下)
11)Widget样式(Widget Style) 特别说明,此处定义大量的系统内置控件的样式,对于重写原生控件的样式具有很大的参考价值. <!-- Widget styles --> & ...
- Android开发工程师文集-Fragment,适配器,轮播图,ScrollView,Gallery 图片浏览器,Android常用布局样式
Android开发工程师文集-Fragment,适配器,轮播图,ScrollView,Gallery 图片浏览器,Android常用布局样式 Fragment FragmentManager frag ...
- Android典型界面设计(5)——使用SlidingMenu和DrawerLayout分别实现左右侧边栏
一.问题描述 侧边栏是Android应用中十分常见的界面效果,可随主屏在左侧或右侧联动,是特别适应手机等小屏幕特性的典型界面设计方案之一,常用作应用的操作菜单,如图所示 实现侧边栏可以使用第三方组件s ...
- Android典型界面设计(6)——ActionBar Tab+ViewPager+Fagment实现滑动导航
一.问题描述 在Android典型界面设计一文中,实现典型滑动导航界面,其实使用ActionBar 也可以轻松实现这一效果,甚至也可实现类似Android典型界面设计(3)的双导航效果.可见Actio ...
- Android典型界面设计(7) ——DrawerLayout+Fragement+ViewPager+PagerTabStrip实现双导航
一.问题描述 在Android典型界面设计(3)的我们实现了双导航效果,即外层底部导航和内部区域的头部导航,如网易新闻等很多应用采用了这种导航,但Google提供DrawerLayout可实现抽屉式导 ...
- android中的样式主题和国际化
一.Android中的样式和主题 1.1样式 样式是作用在控件上的,它是一个包含一个或者多个view控件属性的集合.android style类似网页设计中的css设计思路,可以让设计 ...
- Android流行界面结构——Fragment通过ViewPager(带指示器)嵌套Fragment结构的创建方法详解
原创文章,转载请注明出处http://www.cnblogs.com/baipengzhan/p/6287213.html 当前Android流行界面结构的一种——Fragment通过ViewPage ...
- (转载)Android引导界面实现
Android引导界面实现 Android 2014-07-10 14:47:36 发布 您的评价: 4.0 收藏 3收藏 ViewPager类提供了多界面切换的新效果,是 ...
- Android RatingBar 自定义样式
Android RatingBar 自定义样式 1.先定义Style: <style name="RadingStyle" parent="@android:sty ...
随机推荐
- 用户提交的cookie提交时为什么传不到服务器
cookie与session跨域登陆代码(ie6,ie7,firefox)frameset里面,也就是里面的frame是来自第三方站点(不同ip或不同域名),那么默认情况下ie会自动禁用这些站点的co ...
- 1. Programming in C is fun!
Programming in C is fun! #include <stdio.h> int main() { printf("Programming in C is fun! ...
- UE4.7的IOS发布和调试的相关问题
UE4.7以后正式源码免费了,正好最近工作也在做这部分,ue4的官方文档虽然有一部分ios平台的资料,那也只是通过编辑器来发布或预览一类,但手游程序员都知道,一些cpu和gpu性能上的调试是在所难免的 ...
- ThinkPHP中的三大自动简介
ThinkPHP中的三大自动简介 文章TAG:thinkphp 自动简介 时间:2014-08-23来源:商业源码网 作者:源码库 文章热度: 186 ℃ 过期已备案域名,注册就能用!终身VIP会员, ...
- unity中Debug输出控制
1 需求: (1)选择在界面.console中输出,并且能够设置保存到文档 (2)控制debug是否输出,可以在debug模式下输出,release模式下不输出 2 参考: 谢谢雨松同学的博客:htt ...
- RFID读卡器设置卡
1.打开串口 2.默认密码fffffffffff 3.设置新密码扇区1块号3存放的密码. 4.写入警号001,警号要看数据库是多少
- wordpress自定义数据库出错页面
wordpress数据连接出错时,会有一个空白页面,有一行字:数据连接错误.这样当然不美观,好在这个页面是可以自定义的. 在/wp-content/目录下创建'db-error.php'文件,当数据库 ...
- nginx gzip 模块配置
#gzip模块设置 gzip on; #开启gzip压缩输出 gzip_min_length 1k; #最小压缩文件大小 gzip_buffers 4 16k; #压缩缓冲区 gzip_http_ve ...
- ViewData ViewBag TempData
ViewData(一个字典集合类型):传入的key必须是string类型,可以保存任意对象信息,特点:它只会存在这次的HTTP的要求中而已,并不像session可以将数据带到下一个Http要求. ...
- nginx反向代理初探
1.安装nginx 2.在nginx.conf的http区段中配置负载均衡段 #cluserupstream myCluster{ server 192.168.1.110:1300 weight=5 ...