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

89 lines
3.5 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-08-22 17:54:07 +00:00
2018-07-27 13:07:33 +00:00
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-05 16:35:09 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2018-08-22 17:54:07 +00:00
android:id="@+id/coordinator_layout"
2018-08-01 06:51:27 +00:00
android:layout_width="match_parent"
2018-08-05 16:35:09 +00:00
android:layout_height="match_parent">
2018-07-27 13:07:33 +00:00
2018-08-22 17:54:07 +00:00
<include layout="@layout/retro_backdrop" />
2018-08-05 16:35:09 +00:00
<android.support.design.widget.AppBarLayout
2018-08-22 17:54:07 +00:00
android:id="@+id/app_bar"
2018-08-01 06:51:27 +00:00
android:layout_width="match_parent"
2018-08-05 16:35:09 +00:00
android:layout_height="wrap_content"
android:focusable="true"
2018-08-01 06:51:27 +00:00
tools:ignore="UnusedAttribute">
2018-07-27 13:07:33 +00:00
2018-08-22 17:54:07 +00:00
<android.support.design.widget.CollapsingToolbarLayout
2018-08-05 16:35:09 +00:00
android:id="@+id/collapsing_toolbar"
android:layout_width="match_parent"
2018-08-08 08:03:38 +00:00
android:layout_height="196dp"
2018-08-05 16:35:09 +00:00
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
app:statusBarScrim="?attr/colorPrimary"
app:titleEnabled="false">
2018-07-27 13:07:33 +00:00
2018-08-05 16:35:09 +00:00
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
app:layout_collapseMode="pin"
tools:ignore="ContentDescription" />
2018-07-27 13:07:33 +00:00
2018-08-05 16:35:09 +00:00
<android.support.v7.widget.Toolbar
android:id="@+id/home_toolbar"
style="@style/Toolbar"
tools:ignore="UnusedAttribute">
2018-07-27 13:07:33 +00:00
2018-08-22 17:54:07 +00:00
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
2018-08-05 16:35:09 +00:00
android:layout_height="wrap_content"
2018-08-22 17:54:07 +00:00
android:layout_gravity="center"
android:gravity="center"
android:text="@string/app_name"
android:textAppearance="@style/TextAppearance.AppCompat.Title"
tools:ignore="MissingPrefix" />
<code.name.monkey.retromusic.views.CircularImageView
android:id="@+id/user_image"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_gravity="end"
android:layout_marginEnd="16dp"
app:civ_border="false" />
2018-08-05 16:35:09 +00:00
</android.support.v7.widget.Toolbar>
2018-08-22 17:54:07 +00:00
</android.support.design.widget.CollapsingToolbarLayout>
2018-08-05 16:35:09 +00:00
</android.support.design.widget.AppBarLayout>
2018-07-27 13:07:33 +00:00
2018-08-22 17:54:07 +00:00
2018-08-05 16:35:09 +00:00
<android.support.v4.widget.NestedScrollView
2018-08-22 17:54:07 +00:00
android:id="@+id/content_container"
2018-08-05 16:35:09 +00:00
android:layout_width="match_parent"
2018-08-22 17:54:07 +00:00
android:layout_height="match_parent"
android:background="@drawable/bg_circular_top_corners"
2018-08-05 16:35:09 +00:00
android:elevation="@dimen/card_elevation"
app:behavior_overlapTop="24dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
2018-07-27 13:07:33 +00:00
2018-08-22 17:54:07 +00:00
2018-08-05 16:35:09 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical">
<include layout="@layout/abs_playlists" />
<include layout="@layout/home_section_content" />
</LinearLayout>
2018-08-22 17:54:07 +00:00
2018-08-05 16:35:09 +00:00
</android.support.v4.widget.NestedScrollView>
2018-07-27 13:07:33 +00:00
</android.support.design.widget.CoordinatorLayout>