258 lines
11 KiB
XML
258 lines
11 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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<!-- Right button bar -->
|
|
<LinearLayout
|
|
android:id="@+id/button_bar"
|
|
android:layout_width="@dimen/buttonbar_height"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:orientation="vertical"
|
|
style="@style/ButtonBar.Bottom">
|
|
<ImageButton
|
|
android:id="@+id/home"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="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_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_width="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconSettings"
|
|
android:tint="?attr/defaultButtonColorFilter"
|
|
android:contentDescription="@string/system"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_toLeftOf="@+id/button_bar"
|
|
android:layout_toStartOf="@+id/button_bar">
|
|
|
|
<!-- For when nothing is playing or something not recognized is playing -->
|
|
<RelativeLayout
|
|
android:id="@+id/info_panel"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="@dimen/remote_page_indicator_height"
|
|
android:layout_marginLeft="@dimen/remote_content_hmargin"
|
|
android:layout_marginRight="@dimen/remote_content_hmargin"
|
|
tools:ignore="InconsistentLayout"
|
|
tools:visibility="gone">
|
|
<!--android:background="?attr/cardBackground">-->
|
|
|
|
<TextView
|
|
android:id="@+id/info_title"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
style="@style/TextAppearance.Info.Title"
|
|
tools:ignore="InconsistentLayout"/>
|
|
|
|
<TextView
|
|
android:id="@+id/info_message"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
style="@style/TextAppearance.Info.Details"
|
|
android:layout_below="@id/info_title"
|
|
tools:ignore="InconsistentLayout"/>
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/media_panel"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="@dimen/remote_content_hmargin">
|
|
|
|
<ImageView
|
|
android:id="@+id/art"
|
|
android:layout_width="@dimen/remote_poster_width"
|
|
android:layout_height="@dimen/remote_poster_height"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:scaleType="centerCrop"
|
|
android:contentDescription="@string/poster"/>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toRightOf="@id/art"
|
|
android:layout_toEndOf="@id/art"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
style="@style/TextAppearance.Media.Remote.Title"
|
|
android:background="?attr/contentBackgroundColor"/>
|
|
<TextView
|
|
android:id="@+id/details"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/title"
|
|
android:layout_alignLeft="@id/title"
|
|
android:layout_alignStart="@id/title"
|
|
style="@style/TextAppearance.Media.Remote.Details"
|
|
android:background="?attr/contentBackgroundColor"/>
|
|
<LinearLayout
|
|
android:id="@+id/media_button_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/default_icon_size"
|
|
android:layout_below="@id/details"
|
|
android:layout_alignLeft="@id/details"
|
|
android:layout_alignStart="@id/details"
|
|
android:layout_alignBottom="@+id/art"
|
|
android:orientation="horizontal"
|
|
style="@style/ButtonBar"
|
|
android:background="?attr/contentBackgroundColor">
|
|
<ImageButton
|
|
android:id="@+id/rewind"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconRewind"
|
|
android:contentDescription="@string/rewind"/>
|
|
<ImageButton
|
|
android:id="@+id/play"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconPlay"
|
|
android:contentDescription="@string/play"/>
|
|
<ImageButton
|
|
android:id="@+id/stop"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconStop"
|
|
android:contentDescription="@string/stop"/>
|
|
<ImageButton
|
|
android:id="@+id/fast_forward"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconFastForward"
|
|
android:contentDescription="@string/fast_forward"/>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<org.xbmc.kore.ui.widgets.ControlPad
|
|
android:id="@+id/remote"
|
|
style="@style/ControlPad"
|
|
app:columnCount="3"/>
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout>
|