Adjusted layout

This commit is contained in:
daniel oeh 2012-07-07 16:07:01 +02:00
parent e498216378
commit 8ae87e2a56
2 changed files with 42 additions and 30 deletions

View File

@ -1,40 +1,51 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white"
android:padding="@dimen/widget_margin" > android:padding="@dimen/widget_margin" >
<ImageButton <RelativeLayout
android:id="@+id/butPlay" android:layout_width="match_parent"
android:layout_width="56dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignParentRight="true" android:background="@color/white" >
android:layout_margin="12dp"
android:background="@drawable/borderless_button"
android:src="@drawable/av_play" />
<LinearLayout <ImageButton
android:id="@+id/layout_left" android:id="@+id/butPlay"
android:layout_width="0dp" android:layout_width="56dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignParentLeft="true" android:layout_alignParentRight="true"
android:layout_toLeftOf="@id/butPlay" android:layout_margin="12dp"
android:orientation="vertical" > android:background="@drawable/borderless_button"
android:src="@drawable/av_play" />
<TextView <LinearLayout
android:id="@+id/txtvTitle" android:id="@+id/layout_left"
android:textColor="@color/black" android:layout_width="0dp"
android:layout_width="wrap_content" android:layout_height="match_parent"
android:layout_height="wrap_content" android:layout_alignParentLeft="true"
android:layout_margin="8dp" android:layout_toLeftOf="@id/butPlay"
android:textStyle="bold" /> android:background="@drawable/borderless_button"
android:gravity="center_vertical"
android:orientation="vertical" >
<TextView <TextView
android:id="@+id/txtvProgress" android:id="@+id/txtvTitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="8dp" /> android:layout_margin="8dp"
</LinearLayout> android:maxLines="1"
android:text="@string/no_media_playing_label"
android:textColor="@color/black"
android:textSize="18dp"
android:textStyle="bold" />
</RelativeLayout> <TextView
android:id="@+id/txtvProgress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:textColor="@color/ics_gray" />
</LinearLayout>
</RelativeLayout>
</FrameLayout>

View File

@ -18,6 +18,7 @@
<color name="navy">#000080</color> <color name="navy">#000080</color>
<color name="black">#000000</color> <color name="black">#000000</color>
<color name="bright_blue">#33B5E5</color> <color name="bright_blue">#33B5E5</color>
<color name="ics_gray">#858585</color>
<color name="selection_background">#FEBB20</color> <color name="selection_background">#FEBB20</color>
</resources> </resources>