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=& ...
随机推荐
- Union found
Use array. class UnionFound { public: vector<int> v; int cnt; UnionFound(int n) { v = vector&l ...
- Special Segments of Permutation - CodeForces - 1156E (笛卡尔树上的启发式合并)
题意 给定一个全排列\(a\). 定义子区间\([l,r]\),当且仅当\(a_l + a_r = Max[l,r]\). 求\(a\)序列中子区间的个数. 题解 笛卡尔树上的启发式合并. \(200 ...
- BFS:胜利大逃亡
解题心得: 1.水题,主要主意好一个点就好. 2.注意x.y.z坐标的选取就好. 题目: Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会. 魔王住在一个城堡里,城 ...
- input框中的必填项之取消当前input框为必填项
html5新增了一个required属性,可以使用这个属性对文本框设置必填项,直接在input文本框上添加required即可 . 效果如图:
- P3398 仓鼠找sugar(树链剖分)
P3398 仓鼠找sugar 题目描述 小仓鼠的和他的基(mei)友(zi)sugar住在地下洞穴中,每个节点的编号为1~n.地下洞穴是一个树形结构.这一天小仓鼠打算从从他的卧室(a)到餐厅(b),而 ...
- NOI p 2017 TG游记
嗨小朋友们大家好 还记得我是谁吗 对了我就是为iot配音的演员 弹鸡鸡 今天呐我特别的要向长沙市的oier们 洛谷的oier们 还有cnblogs的oier们问声好 为什么呢 因为我们在2017年11 ...
- C语言其他知识总结
1.常指针与指针常量 诀窍:观察const修饰的是谁,那谁就不可更改. const int *p;//const 修饰*p,所以*p不能更改.通过指针不可更改指向的值 int const *p;//同 ...
- plsql 编程基础
分支 declare --声明变量 a ); b ); c ); begin --开始 a := '小明'; dbms_output.put_line(a); b :; c :; if b > ...
- Java开发微信公众号(四)---微信服务器post消息体的接收及消息的处理
在前几节文章中我们讲述了微信公众号环境的搭建.如何接入微信公众平台.以及微信服务器请求消息,响应消息,事件消息以及工具处理类的封装:接下来我们重点说一下-微信服务器post消息体的接收及消息的处理,这 ...
- 自己搭建一个记笔记的环境记录(leanote)
一直在找一个开源的记笔记的软件,偶然看到leanote.竟然还是开源的,还是国人开发的果断mark了.自己在电脑上搭建了一个挺好玩的.可以记录一些不给别人看的小秘密. 下面是步骤记录,当然可以到官网上 ...