MainActivity.xml:
<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=".showmvp.v.MainActivity">
<com.stx.xhb.xbanner.XBanner
android:id="@+id/xbanner"
android:layout_width="wrap_content"
android:layout_height="200dp"></com.stx.xhb.xbanner.XBanner>
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="800dp">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
show_rxxp.xml:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/show_rxxp_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#ff8659"
android:textSize="20sp"
android:gravity="center"
android:padding="3dp"
/>
<android.support.v7.widget.RecyclerView
android:id="@+id/show_rxxp_rc"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_below="@+id/show_rxxp_text"></android.support.v7.widget.RecyclerView>
</RelativeLayout>
show_mlss.xml:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp">
<TextView
android:id="@+id/show_mlss_tv"
android:layout_width="match_parent"
android:textColor="#FF8659"
android:textSize="16sp"
android:gravity="center"
android:padding="3dp"
android:layout_height="wrap_content" />
<android.support.v7.widget.RecyclerView
android:id="@+id/show_mlss_rc"
android:layout_width="match_parent"
android:layout_below="@+id/show_mlss_tv"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
</RelativeLayout>
show_pzsh.xml:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp">
<TextView
android:id="@+id/show_pzsh_tv"
android:layout_width="match_parent"
android:textColor="#FF8659"
android:textSize="20sp"
android:gravity="center"
android:padding="3dp"
android:layout_height="wrap_content" />
<android.support.v7.widget.RecyclerView
android:id="@+id/show_pzsh_rc"
android:layout_width="match_parent"
android:layout_below="@+id/show_mlss_tv"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
</RelativeLayout>
show_item_rxxp.xml:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:padding="8dp"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/show_rxxp_item_iv"
android:layout_width="120dp"
android:layout_height="160dp"
android:layout_marginLeft="50dp"/>
<TextView
android:id="@+id/show_rxxp_item_ntv"
android:layout_width="120dp"
android:layout_height="80dp"
android:maxLines="2"
android:textSize="18sp"
android:layout_marginLeft="50dp"
android:gravity="center"
android:layout_below="@id/show_rxxp_item_iv"
/>
<TextView
android:id="@+id/show_rxxp_item_ptv"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:textSize="18sp"
android:layout_marginLeft="50dp"
android:gravity="center_horizontal"
android:textColor="@color/colorAccent"
android:layout_marginBottom="5dp"
android:layout_below="@id/show_rxxp_item_ntv"
/>
</RelativeLayout>
show_item_mlss.xml:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_margin="8dp"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/show_mlss_item_iv"
android:layout_width="120dp"
android:layout_height="160dp" />
<TextView
android:id="@+id/show_mlss_item_ntv"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginLeft="200dp"
android:maxLines="2"
android:textSize="20sp"
/>
<TextView
android:id="@+id/show_mlss_item_ptv"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:layout_below="@id/show_mlss_item_ntv"
android:layout_marginLeft="200dp"
android:gravity="center_horizontal"
android:paddingTop="3dp"
android:textColor="@color/colorAccent"
android:textSize="16sp" />
</RelativeLayout>
show_item_pzsh.xml:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp">
<ImageView
android:id="@+id/show_pzsh_item_iv"
android:layout_width="100dp"
android:layout_height="150dp" />
<TextView
android:id="@+id/show_pzsh_item_ntv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="150dp"
android:maxLines="2"
android:textSize="18sp"
android:gravity="center"
android:text="title" />
<TextView
android:id="@+id/show_pzsh_item_ptv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textColor="#D81B60"
android:gravity="center"
android:layout_marginTop="210dp"
android:text="TextView" />
</RelativeLayout>
多条目布局
猜你喜欢
转载自blog.csdn.net/weixin_43584998/article/details/89438048
今日推荐
周排行