packages/services/Car/tests/EmbeddedKitchenSinkApp/res/layout/audio_player_item.xml

66 lines
2.3 KiB
XML
Raw Normal View History

2025-08-25 08:38:42 +08:00
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2021 The Android Open Source Project
~
~ 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:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/player_usage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left" />
<Space
android:layout_width="0dp"
android:layout_height="match_parent" />
<Button
android:id="@+id/player_start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/play"
android:gravity="right" />
<Space
android:layout_width="3dp"
android:layout_height="match_parent"
android:gravity="right" />
<Button
android:id="@+id/player_play_once"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/play_pcm_once"
android:gravity="right" />
<Space
android:layout_width="3dp"
android:layout_height="match_parent"
android:gravity="right" />
<Button
android:id="@+id/player_stop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stop"
android:gravity="right" />
<Space
android:layout_width="8dp"
android:layout_height="match_parent"
android:gravity="right" />
<TextView
android:id="@+id/player_status"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="@string/player_not_started"
android:gravity="right" />
</LinearLayout>