android/app/src/main/res/layout/media_control.xml

83 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
~ SPDX-FileCopyrightText: 2015 ownCloud Inc.
~ SPDX-FileCopyrightText: 2013 David A. Velasco <dvelasco@solidgear.es>
~ SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:paddingTop="@dimen/standard_quarter_padding">
<ImageButton
android:id="@+id/rewindBtn"
style="@android:style/MediaButton.Rew"
android:contentDescription="@string/media_rewind_description" />
<ImageButton
android:id="@+id/playBtn"
style="@android:style/MediaButton.Play"
android:contentDescription="@string/media_play_pause_description" />
<ImageButton
android:id="@+id/forwardBtn"
style="@android:style/MediaButton.Ffwd"
android:contentDescription="@string/media_forward_description" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/currentTimeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:paddingStart="@dimen/standard_quarter_padding"
android:paddingTop="@dimen/standard_quarter_padding"
android:paddingEnd="@dimen/standard_quarter_padding"
android:text="@string/placeholder_media_time"
android:textColor="@color/text_color"
android:textSize="@dimen/two_line_secondary_text_size"
android:textStyle="bold" />
<SeekBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dp"
android:layout_height="@dimen/seek_bar_height"
android:layout_weight="1"
android:splitTrack="false"
tools:ignore="UnusedAttribute" />
<TextView
android:id="@+id/totalTimeText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:paddingStart="@dimen/standard_quarter_padding"
android:paddingTop="@dimen/standard_quarter_padding"
android:paddingEnd="@dimen/standard_quarter_padding"
android:text="@string/placeholder_media_time"
android:textColor="@color/text_color"
android:textSize="@dimen/two_line_secondary_text_size"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>