215 lines
9.1 KiB
XML
215 lines
9.1 KiB
XML
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context="com.kabouzeid.materialmusic.ui.activities.AlbumDetailActivity$PlaceholderFragment">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/album_art"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/default_album_art"
|
|
android:transitionName="@string/transition_album_cover"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1">
|
|
|
|
<ImageView
|
|
android:id="@+id/artist_image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@+id/footer"
|
|
android:layout_alignParentTop="true"
|
|
android:scaleType="centerCrop"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@+id/footer"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_margin="16dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/song_current_progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="2"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:gravity="bottom|left"
|
|
android:singleLine="true"
|
|
android:text="1:24"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Title"
|
|
android:textColor="?attr/title_text_color"
|
|
android:textSize="30sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/song_total_time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_weight="1"
|
|
android:fontFamily="sans-serif"
|
|
android:gravity="bottom|right"
|
|
android:singleLine="true"
|
|
android:text="3:58"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
|
android:textColor="?attr/caption_text_color"
|
|
android:textSize="18sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/footer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="?attr/colorPrimary"
|
|
android:orientation="vertical"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="16dp"
|
|
android:orientation="vertical"
|
|
android:transitionName="@string/transition_album_text">
|
|
|
|
<TextView
|
|
android:id="@+id/song_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Title"
|
|
android:textColor="?attr/title_text_color"/>
|
|
|
|
<TextView
|
|
android:id="@+id/song_artist"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="sans-serif"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
|
android:textColor="?attr/caption_text_color"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/media_controller_placeholder"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="88dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_margin="16dp"
|
|
android:background="?attr/music_controller_container_color"
|
|
android:elevation="1dp">
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/media_controller_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_margin="16dp"
|
|
android:background="?attr/music_controller_container_color"
|
|
android:elevation="1dp">
|
|
|
|
<com.melnykov.fab.FloatingActionButton
|
|
android:id="@+id/fab"
|
|
style="@style/PlayPauseFab"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginBottom="16dp"
|
|
android:layout_marginTop="16dp"
|
|
/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/prev_button"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toLeftOf="@+id/fab"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:padding="14dp"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_skip_previous_white_48dp"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/next_button"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toRightOf="@+id/fab"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:padding="14dp"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_skip_next_white_48dp"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/repeat_button"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_margin="8dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:padding="14dp"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_repeat_grey600_48dp"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/shuffle_button"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_margin="8dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:padding="14dp"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_shuffle_grey600_48dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<SeekBar
|
|
android:id="@+id/progress_slider"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/footer"
|
|
android:elevation="1dp"
|
|
android:padding="0dp"
|
|
android:progressTint="@color/materialmusic_accent_color"
|
|
android:thumbTint="@color/materialmusic_accent_color_darker"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="#00000000"
|
|
android:elevation="2dp"
|
|
android:fitsSystemWindows="true"
|
|
android:minHeight="@dimen/abc_action_bar_default_height_material"
|
|
android:popupTheme="@style/ThemeOverlay.AppCompat.Light"
|
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>
|
|
|
|
</FrameLayout>
|
|
|