diff options
author | Col_or <1638876934@qq.com> | 2022-01-21 01:42:01 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-06-29 16:18:42 +0800 |
commit | 70d89081e21469119a4d5bbf33a81d3f7bc0df3a (patch) | |
tree | 6d4b9388736f21a6df1b8419ad289392caeae62f /kotlin/res/layout | |
parent | 1cd251136a4b35739aced207937bf53d543993f0 (diff) |
Music: New audio preview UIHEADsugisawa-mr1
Change-Id: I5e546f90f94fd4b1635ca5bc84b70cd715554a6c
Diffstat (limited to 'kotlin/res/layout')
-rw-r--r-- | kotlin/res/layout/kscope_audio_preview.xml | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/kotlin/res/layout/kscope_audio_preview.xml b/kotlin/res/layout/kscope_audio_preview.xml new file mode 100644 index 0000000..fb38e75 --- /dev/null +++ b/kotlin/res/layout/kscope_audio_preview.xml @@ -0,0 +1,118 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2022 Project Kaleidoscope + + 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minWidth="500dp" + android:orientation="vertical" + android:padding="15dp"> + + <ProgressBar + android:id="@+id/spinner" + style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" /> + + <TextView + android:id="@+id/loading" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:paddingTop="5dp" + android:textColor="#ffffffff" + android:textSize="14sp" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingLeft="8dp" + android:paddingRight="8dp"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="8dp" + android:gravity="center_horizontal" + android:orientation="vertical"> + + <TextView + android:id="@+id/line1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:paddingTop="5dp" + android:singleLine="true" + android:textAppearance="?android:textAppearanceLarge" /> + + <TextView + android:id="@+id/line2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:paddingTop="5dp" + android:textAppearance="?android:textAppearanceSmall" /> + + </LinearLayout> + + <SeekBar + android:id="@+id/progress" + android:layout_width="match_parent" + android:layout_marginTop="15dp" + android:layout_height="wrap_content" + android:visibility="gone" /> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView + android:id="@+id/audio_played_time" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" /> + + <TextView + android:id="@+id/audio_total_time" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" /> + + </RelativeLayout> + + </LinearLayout> + + <LinearLayout + android:id="@+id/titleandbuttons" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:visibility="gone"> + + <ImageButton + android:id="@+id/playpause" + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_gravity="center_horizontal" + android:background="?android:selectableItemBackgroundBorderless" + android:onClick="playPauseClicked" + android:src="@drawable/kscope_audio_preview_pause_ic" /> + + </LinearLayout> + +</LinearLayout> |