Files
android_development/samples/RandomMusicPlayer/res/layout/main.xml
Roman Nurik 5986e12034 Update RandomMusicPlayer sample for new RemoteControlClient APIs, also add media button support
Change-Id: Ia6ad08dd0ec1e67f1cffa2d6cfca2120ee0a96c7
2011-10-05 16:50:26 -07:00

77 lines
2.9 KiB
XML

<!--
Copyright (C) 2011 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="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:background="#000040">
<TextView android:text="@string/app_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="20dp"
android:textColor="#ffffff"
android:textSize="20sp"
android:textStyle="bold" />
<LinearLayout android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_margin="10dp">
<Button android:id="@+id/rewindbutton"
android:background="@drawable/btn_rew"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_margin="5dp" />
<Button android:id="@+id/playbutton"
android:background="@drawable/btn_play"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_margin="5dp" />
<Button android:id="@+id/pausebutton"
android:background="@drawable/btn_pause"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_margin="5dp" />
<Button android:id="@+id/skipbutton"
android:background="@drawable/btn_ff"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_margin="5dp" />
</LinearLayout>
<LinearLayout android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_margin="10dp">
<Button android:id="@+id/stopbutton"
android:background="@drawable/btn_stop"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_margin="5dp" />
<Button android:id="@+id/ejectbutton"
android:background="@drawable/btn_eject"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_margin="5dp" />
</LinearLayout>
</LinearLayout>