240 lines
9.9 KiB
XML
240 lines
9.9 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.
|
|
-->
|
|
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/top_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/remote_top_panel_height"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true">
|
|
|
|
<include layout="@layout/remote_info_panel"/>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/media_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="@dimen/remote_content_hmargin"
|
|
android:layout_marginRight="@dimen/remote_content_hmargin"
|
|
android:paddingTop="@dimen/remote_page_indicator_height">
|
|
|
|
<ImageView
|
|
android:id="@+id/art"
|
|
android:layout_width="@dimen/remote_poster_width"
|
|
android:layout_height="@dimen/remote_poster_height"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:contentDescription="@string/poster"
|
|
android:scaleType="centerCrop"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/media_button_bar"
|
|
style="@style/ButtonBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/default_icon_size"
|
|
android:layout_alignBottom="@id/art"
|
|
android:layout_toEndOf="@id/art"
|
|
android:layout_toRightOf="@id/art"
|
|
android:background="?attr/contentBackgroundColor"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/rewind"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/rewind"
|
|
android:src="?attr/iconRewind"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/play"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/play"
|
|
android:src="?attr/iconPlay"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/stop"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/stop"
|
|
android:src="?attr/iconStop"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/fast_forward"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/fast_forward"
|
|
android:src="?attr/iconFastForward"/>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
style="@style/TextAppearance.Media.Remote.Title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignTop="@id/art"
|
|
android:layout_toEndOf="@id/art"
|
|
android:layout_toRightOf="@id/art"
|
|
android:background="?attr/contentBackgroundColor"/>
|
|
|
|
<TextView
|
|
android:id="@+id/details"
|
|
style="@style/TextAppearance.Media.Remote.Details"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@id/media_button_bar"
|
|
android:layout_below="@id/title"
|
|
android:layout_toEndOf="@id/art"
|
|
android:layout_toRightOf="@id/art"
|
|
android:background="?attr/contentBackgroundColor"/>
|
|
</RelativeLayout>
|
|
</FrameLayout>
|
|
|
|
<!-- Bottom button bar -->
|
|
<LinearLayout
|
|
android:id="@+id/button_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/buttonbar_height"
|
|
android:layout_alignParentBottom="true"
|
|
android:orientation="horizontal"
|
|
style="@style/ButtonBar.Bottom">
|
|
<ImageButton
|
|
android:id="@+id/home"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconHome"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/home"/>
|
|
<ImageButton
|
|
android:id="@+id/movies"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconMovies"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/movies"/>
|
|
<ImageButton
|
|
android:id="@+id/tv_shows"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconTvShows"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/tv_shows"/>
|
|
<ImageButton
|
|
android:id="@+id/music"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconMusic"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/music"/>
|
|
<ImageButton
|
|
android:id="@+id/pvr"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconPVR"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/pvr"/>
|
|
<ImageButton
|
|
android:id="@+id/pictures"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconPicture"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/pictures"/>
|
|
<ImageButton
|
|
android:id="@+id/videos"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconVideo"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/videos"/>
|
|
<!-- <ImageButton
|
|
android:id="@+id/favourites"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconFavourites"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/favourites"/> -->
|
|
<ImageButton
|
|
android:id="@+id/addons"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconAddons"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/addons"/>
|
|
<ImageButton
|
|
android:id="@+id/weather"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconWeather"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/weather"/>
|
|
<ImageButton
|
|
android:id="@+id/system"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconSettings"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/system"/>
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
style="@style/ControlPad.FrameLayout"
|
|
android:layout_above="@id/button_bar"
|
|
android:layout_below="@id/top_panel">
|
|
<org.xbmc.kore.ui.widgets.ControlPad
|
|
android:id="@+id/remote"
|
|
style="@style/ControlPad"
|
|
app:columnCount="3"/>
|
|
</FrameLayout>
|
|
</RelativeLayout>
|