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 ...
随机推荐
- 利用openSSL 生成RSA公钥和密钥
安装openssl for Windows. 之后开管理员控制台,打开openSSL 我的是 C:\OpenSSL-Win32\bin\openssl.exe 生成1024位的私钥,不指定的话默认20 ...
- ubuntu 14.04安装
最近想搞spark.没有集群环境,想先在单机上跑.但是两年前一直用到现在的virtualbox已经太老,很多源都停更了.所以准备装ubuntu14.04. 0. 更新源.163的源有问题,用的是soh ...
- LiveUpdate Adminstrator配置手册
第一种模式: LUA 从Symantec官网LiveUpdate服务器下载更新. .登陆LUA控制台 图1 .添加Symantec Endpoint Protecton v11.0 图2 3. 查看源 ...
- 用wget下载文件
wget使用文档:https://www.gnu.org/software/wget/manual/wget.html 最开始常用的比如: wget -O /e/movie.mp4 http://w ...
- git命令常见问题总结
1.git如何放弃所有本地修改 git checkout . #本地所有修改的.没有的提交的,都返回到原来的状态 git stash #把所有没有提交的修改暂存到stash里面.可用git stash ...
- php开源项目
论坛社区:Discuz.PHPWind.ThinkSAAS.phpBB CMS内容管理:DedeCMS.PHPCMS.帝国CMS.齐博CMS.Drupal 企业建站:CmsEasy.KingCMS.P ...
- ArcGIS Server 服务迁移、恢复
服务迁移与恢复 如果服务可以迁移,那么备份迁移所需文件,即可恢复原服务,所以"服务的迁移与恢复"."服务的备份"问题可以汇总为一个问题"怎样迁移服务. ...
- Python - 素数筛
def shai(n): prim = list() check = list([1] * (n + 1)) for i in range(2, n + 1): if(check[i] == 1): ...
- 读书笔记——《图解TCP/IP》(1/4)
读书笔记——<图解TCP/IP>(1/4) 经典摘抄 第一章 网络基础知识 1.独立模式:计算机未连接到网络,各自独立使用的方式. 2.广域网 WAN 局域网 LAN 城域网 MAN 3. ...
- C++线程池的实现(二)
参考文章:http://blog.csdn.net/huyiyang2010/archive/2010/08/10/5801597.aspx // CThread.h #ifndef __MY_THR ...