[Android] audio player: center shuffle & repeat buttons
Sébastien Toque
git at videolan.org
Wed Apr 11 21:44:46 CEST 2012
android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Apr 11 20:30:07 2012 +0200| [088cd00404d5f71424a8abc489e335086e37de15] | committer: Sébastien Toque
audio player: center shuffle & repeat buttons
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=088cd00404d5f71424a8abc489e335086e37de15
---
vlc-android/res/layout/audio_player.xml | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index cc9beb4..e16d4e0 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -31,8 +31,7 @@
<LinearLayout
android:layout_width="90dip"
android:layout_height="fill_parent"
- android:gravity="bottom"
- android:paddingLeft="15dip"
+ android:gravity="center"
android:orientation="vertical">
<ImageButton
android:src="@drawable/ic_shuffle"
@@ -51,21 +50,21 @@
android:padding="10dip"
android:layout_height="60dip"
android:layout_width="60dip"
+ android:layout_marginTop="10dip"
android:id="@+id/repeat"
android:onClick="onRepeatClick" />
</LinearLayout>
</LinearLayout>
- <LinearLayout
- android:orientation="horizontal"
+ <FrameLayout
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_marginLeft="15dip"
android:layout_marginTop="10dip"
android:layout_marginRight="15dip">
<TextView
- android:layout_width="0dip"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_weight="1"
+ android:layout_gravity="left"
android:textSize="18dip"
android:text="@string/time_0"
android:textColor="#ffffff"
@@ -73,15 +72,14 @@
android:clickable="true"
android:onClick="onTimeLabelClick" />
<TextView
- android:layout_width="0dip"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_weight="1"
+ android:layout_gravity="right"
android:textSize="18dip"
android:text="@string/time_0"
- android:gravity="right"
android:textColor="#ffffff"
android:id="@+id/length" />
- </LinearLayout>
+ </FrameLayout>
<SeekBar
android:layout_width="fill_parent"
android:layout_height="wrap_content"
More information about the Android
mailing list