PlayerAndroid/app/src/main/res/layout/fragment_banner_home.xml

107 lines
4.6 KiB
XML
Raw Normal View History

2018-08-05 16:35:09 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-11-28 05:37:10 +00:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-08 08:03:38 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2018-11-23 16:30:46 +00:00
android:layout_width="match_parent"
2018-11-28 05:37:10 +00:00
android:layout_height="match_parent">
2018-08-05 16:35:09 +00:00
2018-11-28 05:37:10 +00:00
<com.google.android.material.appbar.AppBarLayout
2018-08-05 16:35:09 +00:00
android:layout_width="match_parent"
2018-11-28 05:37:10 +00:00
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:elevation="0dp"
app:elevation="0dp">
2018-08-08 08:03:38 +00:00
2018-11-28 05:37:10 +00:00
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
app:contentScrim="@android:color/transparent"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
app:statusBarScrim="@color/md_black_1000"
app:titleEnabled="false">
<FrameLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/imageContainer"
2018-11-28 05:37:10 +00:00
android:layout_width="match_parent"
2018-12-04 15:34:26 +00:00
android:layout_height="228dp"
2018-11-28 05:37:10 +00:00
app:layout_collapseMode="parallax">
2018-11-05 13:53:07 +00:00
2018-11-28 05:37:10 +00:00
<ImageView
2018-12-04 15:34:26 +00:00
android:id="@+id/bannerImage"
2018-11-28 05:37:10 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
app:layout_collapseMode="parallax"
tools:background="@color/md_red_400"
tools:ignore="ContentDescription" />
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_collapseMode="pin"
app:layout_scrollFlags="scroll|enterAlways">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include layout="@layout/status_bar" />
</FrameLayout>
2018-12-04 15:34:26 +00:00
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
style="@style/Toolbar"
android:layout_gravity="center_vertical"
app:layout_collapseMode="pin"
app:layout_scrollFlags="scroll|enterAlways"
tools:ignore="UnusedAttribute">
2018-11-28 05:37:10 +00:00
2018-12-04 15:34:26 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
android:id="@+id/bannerTitle"
2018-11-28 05:37:10 +00:00
style="@style/BigTitleTextAppearanceToolbar"
android:text="@string/app_name"
2018-12-04 15:34:26 +00:00
tools:ignore="MissingPrefix" />
2018-11-28 05:37:10 +00:00
<code.name.monkey.retromusic.views.CircularImageView
2018-12-04 15:34:26 +00:00
android:id="@+id/userImage"
2018-11-28 05:37:10 +00:00
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="end|center_vertical"
android:layout_marginEnd="16dp"
app:civ_border="false" />
2018-12-04 15:34:26 +00:00
</androidx.appcompat.widget.Toolbar>
2018-11-28 05:37:10 +00:00
</LinearLayout>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
2018-11-05 13:53:07 +00:00
2018-11-28 05:37:10 +00:00
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:behavior_overlapTop="24dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
2018-11-23 16:30:46 +00:00
2018-11-28 05:37:10 +00:00
<com.google.android.material.card.MaterialCardView
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
2018-11-28 05:37:10 +00:00
android:layout_height="wrap_content"
app:cardCornerRadius="12dp">
2018-11-05 13:53:07 +00:00
2018-11-13 03:30:08 +00:00
<LinearLayout
2018-12-04 15:34:26 +00:00
android:id="@+id/contentContainer"
2018-11-05 13:53:07 +00:00
android:layout_width="match_parent"
2018-11-13 03:30:08 +00:00
android:layout_height="match_parent"
android:descendantFocusability="blocksDescendants"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical">
2018-11-05 13:53:07 +00:00
2018-11-13 03:30:08 +00:00
<include layout="@layout/abs_playlists" />
<include layout="@layout/home_section_content" />
</LinearLayout>
2018-11-28 05:37:10 +00:00
</com.google.android.material.card.MaterialCardView>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>