zoukankan      html  css  js  c++  java
  • android listView布局等分列

    android listView布局4等分列。

    必须要加上<RelativeLayout 在外层,不然等分不起作用

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_height="wrap_content"
        android:paddingBottom="4dip"
        android:layout_width="fill_parent"
        android:background="@drawable/mm_listitem">

    <LinearLayout
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     
     android:orientation="horizontal">  
       
     <TextView
      android:id="@+id/tvBornDate"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:padding="2dp"
      android:textColor="#000000"
      android:text="日期"
      android:textSize="16sp"/>

        <TextView
            android:id="@+id/tvQtySum"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:padding="2dp"
            android:textColor="#000000"
            android:text="日期"
            android:textSize="16sp"/>
        <TextView
            android:id="@+id/tvAmtSum"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:padding="2dp"
            android:textColor="#000000"
            android:text="日期"
            android:textSize="16sp"/>

        <TextView
            android:id="@+id/tvCoStatus"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:padding="2dp"
            android:textColor="#000000"
            android:text="日期"
            android:textSize="16sp"/>
    </LinearLayout>
    </RelativeLayout>

  • 相关阅读:
    Linux Time_wait网络状态 调优
    Linux 系统开启随机端口数量 调优
    Linux 跟踪连接netfilter 调优
    Linux 文件时间记录属性 调优
    Linux 默认线程栈大小 调优
    Linux 系统开启最大线程数 调优
    Linux 系统级开启文件句柄 调优
    Linux 进程级开启最大文件描述符 调优
    参数优化-偏差与方差
    决策树-回归
  • 原文地址:https://www.cnblogs.com/zmc/p/3630716.html
Copyright © 2011-2022 走看看