Android,一条线串联实心圆布局
最近遇到一个简单的布局,不是listview的形式。就只是单纯的下图这种:
此界面布局代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.activity.job.jobcompany.ATJobCompanyJoin">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
android:gravity="center_horizontal"
android:orientation="vertical">
<com.zhb86.nongxin.cn.ui.widget.ActionBar
android:id="@+id/actionbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
app:title="我的公司" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dip_130"
android:background="@drawable/mycompany_title_bg">
<com.zhb86.nongxin.cn.ui.widget.EaseImageView
android:id="@+id/logoview"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_centerHorizontal="true"
android:layout_margin="@dimen/dip_5"
android:src="@drawable/mycom_logo"
app:ease_shape_type="round" />
<TextView
android:id="@+id/com_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/logoview"
android:layout_centerInParent="true"
android:drawablePadding="@dimen/dip_5"
android:drawableRight="@drawable/mc_rz_icon"
android:text="鲜果·微客"
android:textColor="@color/white"
android:textSize="@dimen/dip_17" />
<TextView
android:id="@+id/main_introduction"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/com_name"
android:layout_centerInParent="true"
android:layout_marginTop="@dimen/dip_5"
android:text="所属行业/公司规模/公司性质"
android:textColor="@color/white"
android:textSize="@dimen/dip_14" />
</RelativeLayout>
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/dip_5"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dip_340">
<RelativeLayout
android:id="@+id/header_parent"
android:layout_width="@dimen/dip_20"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/dip_6"
android:gravity="center_vertical|right">
<ImageView
android:layout_width="1dp"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:layout_marginRight="5dp"
android:background="#31bd80" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/dip_5"
android:layout_weight="1"
android:orientation="vertical"
android:paddingLeft="@dimen/dip_10"
android:paddingRight="@dimen/dip_10">
<LinearLayout
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dip_5"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/timeline"
android:drawablePadding="@dimen/dip_8"
android:text="公司简介"
android:textColor="#333333"
android:textSize="@dimen/dip_15" />
<TextView
android:id="@+id/company_profile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dip_18"
android:layout_marginTop="@dimen/dip_5"
android:text="公司简介公司简介"
android:textColor="#888888"
android:textSize="@dimen/dip_14" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dip_5"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/timeline"
android:drawablePadding="@dimen/dip_8"
android:text="公司地址"
android:textColor="#333333"
android:textSize="@dimen/dip_15" />
<TextView
android:id="@+id/company_address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dip_18"
android:layout_marginTop="@dimen/dip_5"
android:text="公司简介公司简介"
android:textColor="#888888"
android:textSize="@dimen/dip_14" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dip_5"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/timeline"
android:drawablePadding="@dimen/dip_8"
android:text="公司邮箱"
android:textColor="#333333"
android:textSize="@dimen/dip_15" />
<TextView
android:id="@+id/company_mailbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dip_18"
android:layout_marginTop="@dimen/dip_5"
android:text="公司简介公司简介"
android:textColor="#888888"
android:textSize="@dimen/dip_14" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dip_5"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/timeline"
android:drawablePadding="@dimen/dip_8"
android:text="公司网站"
android:textColor="#333333"
android:textSize="@dimen/dip_15" />
<TextView
android:id="@+id/company_website"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dip_18"
android:layout_marginTop="@dimen/dip_5"
android:text="公司简介公司简介"
android:textColor="#888888"
android:textSize="@dimen/dip_14" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dip_5"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/timeline"
android:drawablePadding="@dimen/dip_8"
android:text="座机号码"
android:textColor="#333333"
android:textSize="@dimen/dip_15" />
<TextView
android:id="@+id/seat_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dip_18"
android:layout_marginTop="@dimen/dip_5"
android:text="公司简介公司简介"
android:textColor="#888888"
android:textSize="@dimen/dip_14" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dip_5"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/timeline"
android:drawablePadding="@dimen/dip_8"
android:text="公司文化"
android:textColor="#333333"
android:textSize="@dimen/dip_15" />
<TextView
android:id="@+id/corporate_culture"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dip_18"
android:layout_marginTop="@dimen/dip_5"
android:text="公司简介公司简介"
android:textColor="#888888"
android:textSize="@dimen/dip_14" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dip_340"
android:layout_marginTop="@dimen/dip_2"
android:background="@color/gray_color"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/bottom_title"
android:layout_width="match_parent"
android:layout_height="@dimen/dip_25"
android:layout_marginTop="1dp"
android:background="@color/white">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:drawablePadding="@dimen/dip_5"
android:drawableRight="@drawable/mc_rz_icon_hot"
android:text="热招职位"
android:textColor="#fe8611"
android:textSize="@dimen/dip_15" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/bottom_title"
android:layout_marginTop="3dp"
android:background="@color/gray_color">
<include layout="@layout/layout_recycler_swipe" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
Android,一条线串联实心圆布局的更多相关文章
- android 一条线
还在为布局的时候做不出来一条细细的线而烦恼么? 哈哈,自从知道了写法腰也不酸了,腿也不疼了!一口气写100行!! <View android:layout_height="1px&qu ...
- android开发(34) 自定义 listView的分割线( 使用xml drawable画多条线)
我遇到这样一个场景,我需要自定义 listView的分割线,而这个分割线是由两条线组成的,在使用xml drawable时遇到了困难. 注释:画两条线是为了实现 凹陷的效果,在绘图中一条暗线紧跟着一条 ...
- android shap画圆(空心圆、实心圆)
实心圆: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android=" ...
- 【Android 应用开发】AndroidUI设计之 布局管理器 - 详细解析布局实现
写完博客的总结 : 以前没有弄清楚的概念清晰化 父容器与本容器属性 : android_layout...属性是本容器的属性, 定义在这个布局管理器的LayoutParams内部类中, 每个布局管理器 ...
- Android 一条竖线或横线、画边框
Android 一条竖线或横线.画边框 博客分类: android androidshape 1.画线 [img] http://pic002.cnblogs.com/images/2010/122 ...
- 安卓中经常使用控件遇到问题解决方法(持续更新和发现篇幅)(在textview上加一条线、待续)
TextView设置最多显示30个字符.超过部分显示...(省略号),有人说分别设置TextView的android:signature="true",而且设置android:el ...
- 纯JS画点、画线、画圆的方法
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- 【OpenCV新手教程第14】OpenCVHough变换:霍夫变换线,霍夫变换圆汇编
本系列文章由@浅墨_毛星云 出品.转载请注明出处. 文章链接:http://blog.csdn.net/poem_qianmo/article/details/26977557 作者:毛星云(浅墨) ...
- android进度条
android进度条 1.达到的效果 2.布局代码 先写一个my_browser.xml文件 存放WebView <?xml version="1.0" encoding=& ...
随机推荐
- Oracle两种临时表的创建与使用详解
ORACLE数据库除了可以保存永久表外,还可以建立临时表temporary tables.这些临时表用来保存一个会话SESSION的数据,或者保存在一个事务中需要的数据.当会话退出或者用户提交comm ...
- PSTR、LPSTR等宏原型
1.首先介绍char.wchar_t ,宽字符wchar_t和窄字符char. 窄字符char了,大家都很清楚,就是8bit表示的byte,长度固定.char字符只能表示ASII码表中的256个字符, ...
- PAT basic 1086
1086 就不告诉你 (15 分) 做作业的时候,邻座的小盆友问你:“五乘以七等于多少?”你应该不失礼貌地围笑着告诉他:“五十三.”本题就要求你,对任何一对给定的正整数,倒着输出它们的乘积. 输入格式 ...
- 关于IDEA 单元测试时 【empty test suite】异常的分析!!
IDEA功能很强大,配置很操蛋,自从用了之后掉了很多坑!!! 这几天要用单元测试,方法完好但是就是一直报empty test suite ,WTF,类找不到 在网上反复的找答案都没有合适 静下心想想, ...
- Django权限管理系统设计分析
权限管理顾名思义,其实就是角色控制权限的系统,每个用户对应一个角色,每个角色有对应的权限,比如公司会有CEO,总监,销售经理,销售员,每个人的权限都不一样,那我们给他展示的url也都不同 一.首先创建 ...
- c# 操作access数据库image ole字段
using System; using System.Data; using System.Configuration; using System.Web; using System.Data.Ole ...
- 直接选择排序(java)
直接选择排序的逻辑非常简单,数组{A1.......An} 先在{A1........An}去获取最小的 与A1交换位置 然后在{A2..........An}中取出最小的 与A2交换位置. ...
- C#控制台程序读取项目中文件路径
//使用appdomain获取当前应用程序集的执行目录 string dir = AppDomain.CurrentDomain.BaseDirectory; //使用path获取当前应用程序集的执行 ...
- Lyft Level 5 Challenge 2018-Final Round(Open Div.2) B. Taxi drivers and Lyft
http://codeforces.com/contest/1075/problem/B Palo Alto is an unusual city because it is an endless c ...
- mac最新系统安装beego出现kiil 9
(内容来自:http://www.oschina.net/question/2626413_2237311) 应该是最新mac OS 12.04的锅. 现在的解决办法是回退bee到以前版本. cd $ ...