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>

  • 相关阅读:
    求子数组最大和
    layout_weight layout_width = 0dp
    一些日历的实现
    只显示年月日的日历
    每日学习之0512
    git 出现The current branch is not configured for pull No value for key branch.master.merge found in configuration错误的解决办法
    git的配置
    使用Spring security框架实现登陆页面时跳转到favicon.ico问题
    播放视频(c#)
    太阳沉落了
  • 原文地址:https://www.cnblogs.com/zmc/p/3630716.html
Copyright © 2011-2022 走看看