<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:id="@+id/refreshLayout"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
android:orientation="vertical"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
android:id="@+id/appBarLayout"
|
android:layout_width="match_parent"
|
android:layout_height="200dp">
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
android:id="@+id/collapsingToolbarLayout"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
app:contentScrim="@color/white"
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
<RelativeLayout
|
app:layout_collapseParallaxMultiplier="0.1"
|
app:layout_collapseMode="parallax"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<com.youth.banner.Banner xmlns:banner="http://schemas.android.com/apk/res-auto"
|
android:id="@+id/banner"
|
android:layout_width="match_parent"
|
android:layout_height="180dp"
|
banner:banner_indicator_normal_color="@android:color/white"
|
banner:banner_indicator_selected_color="@color/white" />
|
|
</RelativeLayout>
|
<androidx.appcompat.widget.Toolbar
|
android:id="@+id/toolbar"
|
android:layout_gravity="bottom"
|
android:layout_height="?attr/actionBarSize"
|
app:layout_collapseMode="pin"
|
android:layout_width="match_parent">
|
|
<LinearLayout
|
android:layout_height="match_parent"
|
android:id="@+id/ll_header"
|
android:orientation="horizontal"
|
android:layout_width="match_parent">
|
<LinearLayout
|
android:id="@+id/ll_location"
|
android:layout_gravity="center"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content">
|
<ImageView
|
android:layout_gravity="center"
|
android:src="@mipmap/ic_location"
|
android:layout_width="24dp"
|
android:layout_height="24dp"/>
|
<TextView
|
android:id="@+id/tv_location"
|
android:textSize="@dimen/text_size_16"
|
android:textColor="@color/black_title"
|
android:text="上海"
|
android:gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
android:layout_marginLeft="4dp"
|
android:layout_marginRight="12dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"/>
|
</LinearLayout>
|
|
<TextView
|
android:background="@drawable/shape_button_gray"
|
android:layout_alignParentBottom="true"
|
android:id="@+id/tv_search"
|
android:textSize="@dimen/text_size_12"
|
android:paddingLeft="@dimen/margin_common_half"
|
android:drawablePadding="@dimen/margin_common_half"
|
android:drawableStart="@mipmap/icon_search"
|
android:gravity="center_vertical"
|
android:text="搜疾病/症状/医生/科室/医院/地区"
|
android:layout_weight="1"
|
android:layout_width="0dp"
|
android:layout_marginBottom="@dimen/margin_common_half"
|
android:layout_marginTop="@dimen/margin_common_half"
|
android:layout_height="match_parent" />
|
|
<ImageView
|
android:src="@mipmap/ic_scan_gray"
|
android:id="@+id/iv_scan"
|
android:layout_marginLeft="20dp"
|
android:layout_marginRight="20dp"
|
android:layout_gravity="center_vertical"
|
android:layout_width="25dp"
|
android:layout_height="25dp"/>
|
</LinearLayout>
|
</androidx.appcompat.widget.Toolbar>
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
<androidx.core.widget.NestedScrollView
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
android:id="@+id/scrollView"
|
android:background="@color/white"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
>
|
|
<LinearLayout
|
android:orientation="vertical"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
android:orientation="vertical"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
android:layout_margin="@dimen/margin_common"
|
android:orientation="horizontal"
|
android:layout_width="match_parent"
|
android:layout_height="120dp">
|
|
<ImageView
|
android:id="@+id/iv_find_dr"
|
android:background="@mipmap/ic_find_dr"
|
android:layout_weight="1"
|
android:layout_width="0dp"
|
android:layout_height="match_parent" />
|
|
<ImageView
|
android:id="@+id/iv_find_fast"
|
android:background="@mipmap/ic_find_fast"
|
android:layout_weight="1"
|
android:layout_width="0dp"
|
android:layout_height="match_parent" />
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/tv_living_room"
|
android:layout_marginLeft="@dimen/margin_common"
|
android:layout_marginRight="@dimen/margin_common"
|
android:drawableEnd="@mipmap/ic_arrow_right"
|
android:text="名医直播间"
|
android:textSize="@dimen/text_size_18"
|
android:textColor="@color/black_title"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent" />
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_living"
|
android:layout_width="match_parent"
|
android:layout_height="160dp"></androidx.recyclerview.widget.RecyclerView>
|
|
<LinearLayout
|
android:layout_margin="@dimen/margin_common"
|
android:orientation="horizontal"
|
android:layout_width="match_parent"
|
android:layout_height="80dp">
|
|
<LinearLayout
|
android:id="@+id/ll_video"
|
android:orientation="vertical"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
android:layout_height="match_parent">
|
|
<ImageView
|
android:src="@mipmap/ic_art_video"
|
android:layout_width="60dp"
|
android:layout_height="60dp"></ImageView>
|
|
<TextView
|
android:gravity="center_horizontal"
|
android:text="科普视频"
|
android:textColor="@color/black"
|
android:textSize="@dimen/text_size_14"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/ll_record"
|
android:orientation="vertical"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
android:layout_height="match_parent">
|
|
<ImageView
|
android:src="@mipmap/ic_art_record"
|
android:layout_width="60dp"
|
android:layout_height="60dp"></ImageView>
|
|
<TextView
|
android:gravity="center_horizontal"
|
android:text="名医问答"
|
android:textColor="@color/black"
|
android:textSize="@dimen/text_size_14"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/ll_voice"
|
android:orientation="vertical"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
android:layout_height="match_parent">
|
|
<ImageView
|
android:src="@mipmap/ic_art_voice"
|
android:layout_width="60dp"
|
android:layout_height="60dp"></ImageView>
|
|
<TextView
|
android:gravity="center_horizontal"
|
android:text="医生音频"
|
android:textColor="@color/black"
|
android:textSize="@dimen/text_size_14"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/ll_article"
|
android:orientation="vertical"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
android:layout_height="match_parent">
|
|
<ImageView
|
android:src="@mipmap/ic_art_article"
|
android:layout_width="60dp"
|
android:layout_height="60dp"></ImageView>
|
|
<TextView
|
android:gravity="center_horizontal"
|
android:text="专家解读"
|
android:textColor="@color/black"
|
android:textSize="@dimen/text_size_14"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<androidx.recyclerview.widget.RecyclerView
|
app:layout_behavior="@string/header_scrolling_behavior"
|
android:id="@+id/rv_article"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|