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=& ...
随机推荐
- 嵌入式Linux环境搭建备忘
嵌入式Linux开发平台搭建步骤: 1.安装宿主机Linux系统 如果选用最新的Linux发行版,应改主意其他软件是否能很好的兼容. 2.安装交叉编译器 交叉编译器的版本很多,一般到芯片厂家官网下载官 ...
- Sonya and Robots CodeForces - 1004C (思维题)
Sonya and Robots time limit per test 1 second memory limit per test 256 megabytes input: standard in ...
- 2.使用vue ui命令快速构建应用
直接在web端新建应用 C:\Users\Hugo> vue ui
- 在Foxmail中添加阿里云企业邮箱账号
1.安装完成Foxmail之后,新建账号 输入阿里云邮箱地址和密码,点击创建 接受服务器类型你可以选择POP3或者IMAP,在这里我选择的是POP3 点击创建,大功告成. 为什么要写这篇文章呢? 因为 ...
- SpringMVC基本概念
DispatcherServlet:MVC的前端控制器,浏览器用户的请求经过DispatcherServlet的分发,到达合适的controller,生产业务数据所需要的model,model通过Di ...
- MySQL != 失效
字段中包含 NULL 和 其他字符串值时, 字段既包含 NULL 也有字符串类型的值, 使用如下 SQL 无法获取值为 NULL 的部分 SELECT * FROM table_name WHERE ...
- 删除 node 【笔记】
sudo npm uninstall npm -g sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receip ...
- OgnlContext 源码
// Copyright (c) 1998-2004, Drew Davidson and Luke Blanshard package ognl; import ognl.enhance.Local ...
- Unity 脚本<2>
UnityEngine; using System.Collections; public class PlayerControl : MonoBehaviour { [HideInInspector ...
- linux系统负载状态检查脚本
为了便于分析问题,编写了一个linux状态检查脚本,脚本可放置任意目录,脚本执行检测后会输出日志记录到当前目录下.直接执行脚本可用于一次检测,可通过日志进行分析.如果需要长时间监测,可执行-x参数,脚 ...