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=& ...
随机推荐
- g++编译器的使用(转载)
关于g++ g++ 是GNU组织开发出的编译器软件集合(GCC)下的一个C++编译器.它是Unix 和 Linux 系统下标配的 基于命令行的 C++编译器.如果你的系统是Windows,可以按照 ...
- STM32位带操作
STM32的位带操作是基于cortex内核自带的,而不是st公司独创.基本的思路就是用一个32位的地址空间访问一个bit,因为stm32只支持32位数据的读取,不像51单片机一样,是可以单独对一位操作 ...
- ListNode Java创建链表
用了一种自创的比较简洁的方式来创建链表 class ListNode { //为了方便,这两个变量都使用pub1ic, //存放数据的变量,直接为int型 public int data; //存放结 ...
- 14,UA池和代理池
今日概要 scrapy下载中间件 UA池 代理池 一,下载中间件(Downloader Middlewares) 位于scrapy引擎和下载器之间的一层组件. - 作用: (1)引擎将请求传递给下载器 ...
- synchronized 基本用法
常见三种使用方式 1)普通同步方法,锁是当前实例:2)静态同步方法,锁是当前类的Class实例,Class数据存在永久代中,是该类的一个全局锁:3)对于同步代码块,锁是synchronized括号里配 ...
- MySQL基础2-创建表和主键约束
1.创建表 在操作数据表之前,应该使用"USE 数据库名"指定操作是在哪个数据库中进行 主键约束(唯一标识) ****非空*** ****唯一*** ****被引用****(学习外 ...
- HBase官方文档
HBase官方文档 目录 序 1. 入门 1.1. 介绍 1.2. 快速开始 2. Apache HBase (TM)配置 2.1. 基础条件 2.2. HBase 运行模式: 独立和分布式 2.3. ...
- 我给女朋友讲编程CSS系列(1) –添加CSS样式的3种方式及样式表的优先权
如果说,原生态就是美,那么,我们就没有必要穿衣打扮. 网页是什么? 说白了,网页就是一堆[html标签]有序的搭配,让[CSS属性值]整整容,请[Javascript语言]处理一下事件. 一个人的整容 ...
- 【Best Time to Buy and Sell Stock II】cpp
题目: Say you have an array for which the ith element is the price of a given stock on day i. Design a ...
- leetcode 【 Remove Element 】python 实现
题目: Given an array and a value, remove all instances of that value in place and return the new lengt ...