最近遇到一个简单的布局,不是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,一条线串联实心圆布局的更多相关文章

  1. android 一条线

    还在为布局的时候做不出来一条细细的线而烦恼么? 哈哈,自从知道了写法腰也不酸了,腿也不疼了!一口气写100行!! <View android:layout_height="1px&qu ...

  2. android开发(34) 自定义 listView的分割线( 使用xml drawable画多条线)

    我遇到这样一个场景,我需要自定义 listView的分割线,而这个分割线是由两条线组成的,在使用xml drawable时遇到了困难. 注释:画两条线是为了实现 凹陷的效果,在绘图中一条暗线紧跟着一条 ...

  3. android shap画圆(空心圆、实心圆)

    实心圆: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android=" ...

  4. 【Android 应用开发】AndroidUI设计之 布局管理器 - 详细解析布局实现

    写完博客的总结 : 以前没有弄清楚的概念清晰化 父容器与本容器属性 : android_layout...属性是本容器的属性, 定义在这个布局管理器的LayoutParams内部类中, 每个布局管理器 ...

  5. Android 一条竖线或横线、画边框

    Android 一条竖线或横线.画边框 博客分类: android androidshape  1.画线 [img] http://pic002.cnblogs.com/images/2010/122 ...

  6. 安卓中经常使用控件遇到问题解决方法(持续更新和发现篇幅)(在textview上加一条线、待续)

    TextView设置最多显示30个字符.超过部分显示...(省略号),有人说分别设置TextView的android:signature="true",而且设置android:el ...

  7. 纯JS画点、画线、画圆的方法

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  8. 【OpenCV新手教程第14】OpenCVHough变换:霍夫变换线,霍夫变换圆汇编

    本系列文章由@浅墨_毛星云 出品.转载请注明出处. 文章链接:http://blog.csdn.net/poem_qianmo/article/details/26977557 作者:毛星云(浅墨) ...

  9. android进度条

    android进度条 1.达到的效果 2.布局代码 先写一个my_browser.xml文件 存放WebView <?xml version="1.0" encoding=& ...

随机推荐

  1. 南阳 ACM16 矩形嵌套 动态规划

    矩形嵌套 时间限制:3000 ms  |           内存限制:65535 KB 难度:4   描述 有n个矩形,每个矩形可以用a,b来描述,表示长和宽.矩形X(a,b)可以嵌套在矩形Y(c, ...

  2. UVALive 4685 Succession 树DP+背包

    一.前言 这道题同样来自于红书P142,作为树DP专题中的一道比较难的题目,A了一天左右的时间,看上去事实证明,这题的难度理我本身的实力还是有些太远了,于是正确的做法应该是分析一下题目之后进行解析什么 ...

  3. Flume-NG源码分析-整体结构及配置载入分析

    在 http://flume.apache.org 上下载flume-1.6.0版本,将源码导入到Idea开发工具后如下图所示: 一.主要模块说明 flume-ng-channels 里面包含了fil ...

  4. Python登录人人网并抓取新鲜事

    from sgmllib import SGMLParser import sys,urllib2,urllib,cookielib class spider(SGMLParser):     def ...

  5. 图学java基础篇之集合工具

    两个工具类 java.utils下又两个集合相关_(准确来说其中一个是数组的)_的工具类:Arrays和Collections,其中提供了很多针对集合的操作,其中涵盖了一下几个方面: 拷贝.填充.反转 ...

  6. 编程高手解读什么是NodeJs?

    首先在搞清楚什么NodeJs之前,我们先来聊聊JavaScript,只要做过开发的人都应该知道JavaScript是目前最为流行的前端(客户端)脚 本语言,JavaScript在Web项目中的使用率可 ...

  7. PostgreSQL 数组类型

    PostgreSQL 支持表的字段使用定长或可变长度的一维或多维数组,数组的类型可以是任何数据库内建的类型.用户自定义的类型.枚举类型, 以及组合类型.但目前还不支持 domain 类型. 数组类型的 ...

  8. POJ 3268 Silver Cow Party 最短路—dijkstra算法的优化。

    POJ 3268 Silver Cow Party Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbe ...

  9. 环境说明与HelloWorld

    本人采用的是ExtJs4.2版本,采用WebStorm作为IDE开发工具 目录说明 builds:压缩后的ExtJs代码 docs:文档 examples:官方示例 locale:多国语言的资源文件 ...

  10. 【bzoj1336/1337/2823】[Balkan2002]Alien最小圆覆盖 随机增量法

    题目描述 给出N个点,让你画一个最小的包含所有点的圆. 输入 先给出点的个数N,2<=N<=100000,再给出坐标Xi,Yi.(-10000.0<=xi,yi<=10000. ...