布局:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"> <LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:orientation="horizontal"> <com.example.appdome.view.CircleImageView
android:id="@+id/v_item_head_img"
android:layout_width="0dp"
android:layout_marginLeft="10dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/v_head_style"
/> <TextView
android:id="@+id/v_item_head_txt"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1" /> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2" /> <TextView
android:id="@+id/v_item_head_date"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1.5"
android:gravity="center_vertical" android:text="aaa"/> </LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="10"
android:orientation="vertical"> <ImageView android:id="@+id/v_item_body_img" android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="9" /> <TextView
android:id="@+id/v_item_body_txt"
android:layout_width="match_parent"
android:layout_height="0dp"
android:gravity="center_vertical"
android:text="123455"
android:paddingLeft="10dp"
android:textColor="#000000"
android:layout_weight="1" /> </LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:orientation="horizontal"> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingTop="15dp"
android:paddingBottom="20dp"
android:orientation="horizontal"> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> <ImageView
android:id="@+id/v_item_footer_g_img" android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
/> <TextView
android:id="@+id/v_item_footer_g_txt"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:text="111"
android:layout_weight="1.5" /> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> </LinearLayout> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:paddingTop="15dp"
android:paddingBottom="20dp"
android:layout_weight="1"> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> <com.example.appdome.view.RoundImageView
android:id="@+id/v_item_footer_c_img"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" /> <TextView
android:id="@+id/v_item_footer_c_txt"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:text="111"
android:layout_weight="1.5" /> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> </LinearLayout> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:paddingTop="15dp"
android:paddingBottom="20dp"
android:layout_weight="1"> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" /> <ImageView
android:id="@+id/v_item_footer_s_img" android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" /> <TextView
android:id="@+id/v_item_footer_s_txt"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:text="111"
android:layout_weight="1.5" /> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5" />
</LinearLayout> </LinearLayout> </LinearLayout>

最新文章

  1. 协同js库,代码编辑器
  2. HTML Table导出为Excel的方法
  3. javascript_04 数据类型
  4. fmri降噪,利用spatial+temporal信息
  5. Button 自定义(一)-shape
  6. JS将搜索的关键字高亮显示实现代码
  7. Win7 下安装RabbitMQ
  8. 解读sample3
  9. 基于session 的springMvc 国际化
  10. 配置PLSQL,提升工作效率
  11. Android Studio精彩案例(二)《仿微信动态点击底部tab切换Fragment》
  12. localStorage和sessionStorage区别(包括同源的定义)
  13. 【比赛】NOIP2018 铺设道路
  14. win10 同步批处理禁用和启用网卡
  15. java io系列25之 PrintWriter (字符打印输出流)
  16. C# web IIS服务器 DateTime 带中文解决
  17. 微信小程序-用户拒绝授权使用 wx.openSetting({}) 重新调起授权用户信息
  18. CSS初始化示例代码
  19. [No0000150]VSVisualStudio提示图标,信号图标的含义
  20. 计算概论(A)/基础编程练习(数据成分)/2:奥运奖牌计数

热门文章

  1. mybatis源码配置文件解析之四:解析plugins标签
  2. mybatis源码配置文件解析之五:解析mappers标签流程图
  3. LINUX 下 一些常用的信息显示命令:
  4. python之os模块分类整理
  5. 附007.Docker全系列大总结
  6. Java基础-线程与并发1
  7. requirejs之demo
  8. 最近用unity写三消游戏,mark一个准备用的unity插件,用来控制运动。
  9. Maven 专题(八):配置(一)常用修改配置
  10. Linux如何用脚本监控Oracle发送警告日志ORA-报错发送邮件