0
点赞
收藏
分享

微信扫一扫

listview条目间隔时效

listview条目间隔时效_2d
解决:在item的最外层再套一层布局

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="wrap_content"
android:orientation="horizontal">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginBottom="@dimen/dp_10"
android:background="@drawable/nickname_shape"
android:orientation="vertical"
android:layout_marginTop="@dimen/dp_10">


<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="24dp"
android:layout_marginTop="17dp"
android:text="标题"
android:textColor="@color/black_title"
android:textSize="16sp" />

<TextView
android:id="@+id/tv_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="24dp"
android:layout_marginTop="12dp"
android:text="时间"
android:textColor="@color/stroke_grey"
android:textSize="13sp" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />

<TextView
android:id="@+id/state_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:layout_marginBottom="21dp"
android:text="已收录" />
LinearLayout>

LinearLayout>
LinearLayout>

listview条目间隔时效_xml_02


举报

相关推荐

0 条评论