jncultural/modulemain/src/main/res/layout/fragment_home.xml

154 lines
5.9 KiB
XML
Raw Normal View History

2020-05-27 13:32:22 +08:00
<?xml version="1.0" encoding="utf-8"?>
2020-05-28 19:45:35 +08:00
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2020-05-27 13:32:22 +08:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2020-05-28 19:45:35 +08:00
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/srl_main_content"
2020-05-27 13:32:22 +08:00
android:layout_width="match_parent"
2020-05-28 19:45:35 +08:00
android:layout_height="match_parent"
2020-05-27 13:32:22 +08:00
android:background="@color/white"
2020-05-28 19:45:35 +08:00
android:orientation="vertical"
tools:ignore="MissingDefaultResource">
2020-05-27 13:32:22 +08:00
2020-05-28 19:45:35 +08:00
<com.youth.banner.Banner
android:id="@+id/banner"
android:layout_width="match_parent"
android:layout_height="200dp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rlv_main_func"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:paddingTop="10dp"
android:paddingBottom="10dp"
tools:itemCount="4"
tools:layoutManager="LinearLayoutManager"
tools:listitem="@layout/item_main_func"
tools:orientation="horizontal" />
<ImageView
android:id="@+id/iv_arrow_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="@drawable/ic_arrow_gray_right" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="5dp"
android:background="@color/gray_line" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:padding="8dp"
android:text="-精彩推荐-"
android:textSize="14sp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rlv_commend"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/gray_line" />
<TextView
android:id="@+id/tv_main_news"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:padding="8dp"
android:text="新闻资讯 >"
android:textSize="14sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/gray_line" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rlv_main_news"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tv_news_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="暂无内容"
android:visibility="gone" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/gray_line" />
<TextView
android:id="@+id/tv_live"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:padding="8dp"
android:text="共享直播 >"
android:textSize="14sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/gray_line" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rlv_lives"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tv_lives_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="暂无内容"
android:visibility="gone" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
2020-05-27 13:32:22 +08:00