80 lines
3.2 KiB
XML
80 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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:background="@mipmap/bg_main"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appBarLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="70dp"
|
|
android:layout_marginTop="20dp"
|
|
android:background="@android:color/transparent"
|
|
android:fadingEdge="none"
|
|
app:elevation="0dp"
|
|
app:layout_behavior="com.yunbao.common.custom.FixAppBarLayoutBehavior">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_scrollFlags="scroll|enterAlways">
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_toLeftOf="@id/btn_search"
|
|
tools:ignore="NotSibling">
|
|
|
|
<net.lucode.hackware.magicindicator.MagicIndicator
|
|
android:id="@+id/indicator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvPlay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_toRightOf="@+id/indicator"
|
|
android:gravity="center"
|
|
android:paddingTop="1dp"
|
|
android:text="@string/main_type_theater"
|
|
android:textColor="@color/black1"
|
|
android:textSize="16dp"
|
|
android:textStyle="bold" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/btn_send"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginRight="10dp"
|
|
android:contentDescription="TODO"
|
|
android:onClick="mainClick"
|
|
android:padding="9dp"
|
|
android:src="@mipmap/icon_main_add" />
|
|
</RelativeLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.viewpager.widget.ViewPager
|
|
android:id="@+id/viewPager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@android:color/transparent"
|
|
android:overScrollMode="never"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
</LinearLayout> |