apollo/res/layout/app_widget_small.xml

151 lines
6.5 KiB
XML
Raw Normal View History

2025-11-22 13:49:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="top"
android:background="@drawable/appwidget_bg"
android:gravity="top"
android:padding="@dimen/app_widget_padding"
tools:ignore="NestedWeights" >
<LinearLayout
android:id="@+id/app_widget_small_buttons"
android:layout_width="match_parent"
android:layout_height="@dimen/app_widget_small_artwork_size"
android:baselineAligned="false"
android:focusable="true"
android:orientation="horizontal" >
<FrameLayout
android:layout_width="@dimen/app_widget_small_artwork_size"
android:layout_height="@dimen/app_widget_small_artwork_size"
android:focusable="true" >
<ImageView
android:id="@+id/app_widget_small_image"
android:layout_width="@dimen/app_widget_small_artwork_size"
android:layout_height="@dimen/app_widget_small_artwork_size"
android:background="@drawable/default_artwork"
android:contentDescription="@null"
android:scaleType="centerInside" />
</FrameLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:focusable="true"
android:gravity="center_horizontal"
android:orientation="horizontal" >
<ImageButton
android:id="@+id/app_widget_small_previous"
android:layout_width="0dp"
android:layout_height="@dimen/app_widget_small_button_height"
android:layout_weight="1"
android:background="@null"
android:contentDescription="@string/accessibility_prev"
android:focusable="true"
android:padding="@dimen/app_widget_small_button_padding"
android:scaleType="fitCenter"
android:src="@drawable/btn_playback_previous" />
<ImageButton
android:id="@+id/app_widget_small_play"
android:layout_width="0dp"
android:layout_height="@dimen/app_widget_small_button_height"
android:layout_weight="1"
android:background="@null"
android:contentDescription="@string/accessibility_play"
android:focusable="true"
android:padding="@dimen/app_widget_small_button_padding"
android:scaleType="fitCenter"
android:src="@drawable/btn_playback_play" />
<ImageButton
android:id="@+id/app_widget_small_next"
android:layout_width="0dp"
android:layout_height="@dimen/app_widget_small_button_height"
android:layout_weight="1"
android:background="@null"
android:contentDescription="@string/accessibility_next"
android:focusable="true"
android:padding="@dimen/app_widget_small_button_padding"
android:scaleType="fitCenter"
android:src="@drawable/btn_playback_next" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/app_widget_small_half_separator"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/app_widget_small_buttons"
android:background="@color/transparent_white" />
<RelativeLayout
android:id="@+id/app_widget_small_info_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/app_widget_small_half_separator"
android:focusable="true"
android:gravity="top"
android:orientation="horizontal"
android:paddingLeft="@dimen/app_widget_small_info_container_padding_left"
android:paddingRight="@dimen/app_widget_small_info_container_padding_right"
android:paddingTop="@dimen/app_widget_small_info_container_padding_top" >
<TextView
android:id="@+id/app_widget_small_line_one"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="none"
android:singleLine="true"
android:textColor="@color/white"
android:textSize="@dimen/text_size_small"
android:textStyle="bold" />
<TextView
android:id="@+id/app_widget_small_text_separator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/app_widget_small_line_one"
android:ellipsize="none"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:singleLine="true"
android:text="@string/app_widget_text_separator"
android:textColor="@color/transparent_white"
android:textSize="@dimen/text_size_small"
android:textStyle="bold" />
<TextView
android:id="@+id/app_widget_small_line_two"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/app_widget_small_text_separator"
android:ellipsize="marquee"
android:singleLine="true"
android:textColor="@color/transparent_white"
android:textSize="@dimen/text_size_small" />
</RelativeLayout>
</RelativeLayout>