271 lines
14 KiB
XML
271 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2015 Synced Synapse. All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false">
|
|
|
|
<ImageView
|
|
android:id="@+id/art"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/now_playing_art_height"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:contentDescription="@string/thumbnail"
|
|
app:layout_behavior="org.xbmc.kore.ui.behaviors.FadeOutOnVerticalScrollBehavior"
|
|
android:scaleType="centerCrop"/>
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/swipe_refresh_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/media_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:transitionGroup="true">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/media_panel_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/remote_content_hmargin"
|
|
android:layout_marginRight="@dimen/remote_content_hmargin">
|
|
<TextView
|
|
android:id="@+id/media_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/media_title_margin_top"
|
|
style="@style/TextAppearance.Media.Title"
|
|
android:paddingLeft="@dimen/poster_width_plus_padding"
|
|
android:paddingRight="@dimen/default_padding"
|
|
android:paddingStart="@dimen/poster_width_plus_padding"
|
|
android:paddingEnd="@dimen/default_padding"
|
|
android:background="?attr/contentBackgroundColor"/>
|
|
<TextView
|
|
android:id="@+id/media_undertitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/TextAppearance.Media.Subtitle"
|
|
android:paddingLeft="@dimen/poster_width_plus_padding"
|
|
android:paddingRight="@dimen/default_padding"
|
|
android:paddingStart="@dimen/poster_width_plus_padding"
|
|
android:paddingEnd="@dimen/default_padding"
|
|
android:layout_below="@id/media_title"
|
|
android:background="?attr/contentBackgroundColor"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/poster"
|
|
android:layout_width="@dimen/detail_poster_width_square"
|
|
android:layout_height="@dimen/detail_poster_height_square"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_marginLeft="@dimen/default_padding"
|
|
android:layout_marginStart="@dimen/default_padding"
|
|
android:layout_alignBottom="@id/media_undertitle"
|
|
android:contentDescription="@string/poster"
|
|
android:scaleType="centerCrop"/>
|
|
|
|
<!-- Media actions buttons -->
|
|
<LinearLayout
|
|
android:id="@+id/media_actions_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/buttonbar_height"
|
|
android:layout_below="@id/media_undertitle"
|
|
android:paddingLeft="@dimen/default_padding"
|
|
android:paddingRight="@dimen/default_padding"
|
|
android:orientation="horizontal"
|
|
style="@style/ButtonBar"
|
|
android:background="?attr/contentBackgroundColor"
|
|
android:visibility="gone">
|
|
<Space
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"/>
|
|
<ImageButton
|
|
android:id="@+id/media_action_pin_unpin"
|
|
android:visibility="gone"
|
|
android:layout_width="@dimen/buttonbar_button_width"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconBookmark"
|
|
android:contentDescription="@string/enable_disable"/>
|
|
<ImageButton
|
|
android:id="@+id/media_action_add_to_playlist"
|
|
android:layout_width="@dimen/buttonbar_button_width"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconAddToQueue"
|
|
android:contentDescription="@string/add_to_playlist"
|
|
android:visibility="gone"/>
|
|
<ImageButton
|
|
android:id="@+id/media_action_download"
|
|
android:layout_width="@dimen/buttonbar_button_width"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconDownload"
|
|
android:contentDescription="@string/download"
|
|
android:visibility="gone"/>
|
|
<ImageButton
|
|
android:id="@+id/media_action_go_to_imdb"
|
|
android:layout_width="@dimen/buttonbar_button_width"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconInfoWWW"
|
|
android:contentDescription="@string/imdb"
|
|
android:visibility="gone"/>
|
|
<ImageButton
|
|
android:id="@+id/media_action_seen"
|
|
android:layout_width="@dimen/buttonbar_button_width"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconSeen"
|
|
android:contentDescription="@string/seen"
|
|
android:visibility="gone"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/media_details"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:paddingTop="@dimen/default_padding"
|
|
android:paddingBottom="@dimen/default_padding"
|
|
android:paddingLeft="@dimen/default_padding"
|
|
android:paddingRight="@dimen/default_padding"
|
|
android:layout_below="@id/media_actions_bar"
|
|
android:background="?attr/contentBackgroundColor">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/rating_container"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="3"
|
|
android:layout_gravity="start">
|
|
<TextView
|
|
android:id="@+id/rating"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
style="@style/TextAppearance.Media.Rating"
|
|
android:layout_marginRight="@dimen/small_padding"
|
|
android:layout_marginEnd="@dimen/small_padding"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:id="@+id/rating_votes"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/TextAppearance.Media.SmallDetails"/>
|
|
|
|
<TextView
|
|
android:id="@+id/max_rating"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/TextAppearance.Media.SmallDetails"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/media_details_right"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="5"
|
|
android:layout_gravity="end"
|
|
android:gravity="end"
|
|
style="@style/TextAppearance.Media.SmallDetails"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/media_description_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/media_details"
|
|
android:orientation="vertical"
|
|
android:background="?attr/contentBackgroundColor">
|
|
<at.blogc.android.views.ExpandableTextView
|
|
android:id="@+id/media_description"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/TextAppearance.Media.Info"
|
|
android:paddingLeft="@dimen/default_padding"
|
|
android:paddingRight="@dimen/default_padding"
|
|
android:paddingBottom="0dp"
|
|
android:maxLines="@integer/description_max_lines"
|
|
android:ellipsize="end"
|
|
app:animation_duration="@integer/expandable_textview_animation_duration"/>
|
|
<ImageView
|
|
android:id="@+id/show_all"
|
|
android:layout_width="@dimen/small_icon_size"
|
|
android:layout_height="@dimen/small_icon_size"
|
|
android:layout_gravity="end"
|
|
android:layout_marginBottom="@dimen/small_padding"
|
|
android:layout_marginRight="@dimen/small_padding"
|
|
android:layout_marginEnd="@dimen/small_padding"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconExpand"
|
|
android:contentDescription="@string/toggle_expand"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/separator"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_below="@id/media_description_container"
|
|
style="@style/DefaultDividerH"/>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/media_additional_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/separator"
|
|
android:layout_marginTop="@dimen/default_padding"/>
|
|
|
|
</RelativeLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
<org.xbmc.kore.ui.widgets.fabspeeddial.FABSpeedDial
|
|
android:id="@+id/fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_anchor="@id/media_panel"
|
|
app:layout_anchorGravity="bottom|end|right"
|
|
app:layout_behavior="org.xbmc.kore.ui.behaviors.FABSpeedDialBehavior"
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"/>
|
|
|
|
<!-- View that will be shown with the circularReveal when user presses the FAB -->
|
|
<View
|
|
android:id="@+id/exit_transition_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/fabColorNormal"
|
|
android:visibility="invisible"/>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |