diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-04-18 21:12:10 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-04-18 21:12:10 +0200 |
commit | d0b620fdc53a985acb16beac77171ec5584ddb3c (patch) | |
tree | b176f2467f06604e46ff048e0aa3039d0dedda1c /res | |
parent | 257913196b0aa7f971bad387359f49e391fe9ed3 (diff) | |
download | AntennaPod-d0b620fdc53a985acb16beac77171ec5584ddb3c.zip |
Improved external player layout
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/external_player_fragment.xml | 57 | ||||
-rw-r--r-- | res/values/dimens.xml | 2 |
2 files changed, 16 insertions, 43 deletions
diff --git a/res/layout/external_player_fragment.xml b/res/layout/external_player_fragment.xml index d619d7a77..401127148 100644 --- a/res/layout/external_player_fragment.xml +++ b/res/layout/external_player_fragment.xml @@ -1,26 +1,26 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/fragmentLayout" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" - android:visibility="gone" > + android:id="@+id/fragmentLayout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:visibility="gone"> <View android:layout_width="match_parent" - android:layout_height="1.5dp" - android:background="#AAAAAA" /> + android:layout_height="2dp" + android:background="@color/bright_blue"/> <LinearLayout android:layout_width="match_parent" - android:layout_height="wrap_content" > + android:layout_height="wrap_content"> <RelativeLayout android:id="@+id/layoutInfo" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:background="?attr/borderless_button" > + android:background="?attr/borderless_button"> <ImageView android:id="@+id/imgvCover" @@ -28,9 +28,10 @@ android:layout_width="@dimen/external_player_height" android:layout_height="@dimen/external_player_height" android:layout_alignParentLeft="true" + android:padding="4dp" android:adjustViewBounds="true" android:cropToPadding="true" - android:scaleType="fitXY" /> + android:scaleType="fitXY"/> <TextView android:id="@+id/txtvTitle" @@ -42,37 +43,9 @@ android:layout_marginTop="8dp" android:layout_toRightOf="@id/imgvCover" android:ellipsize="end" - android:maxLines="1" - android:textStyle="bold" /> - - <TextView - android:id="@+id/txtvPosition" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_below="@id/txtvTitle" - android:layout_marginBottom="8dp" - android:layout_marginLeft="8dp" - android:layout_marginRight="8dp" - android:layout_marginTop="4dp" - android:layout_toRightOf="@id/imgvCover" - android:maxLines="1" - android:textSize="@dimen/text_size_micro" /> - - <TextView - android:id="@+id/txtvStatus" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_alignParentRight="true" - android:layout_below="@id/txtvTitle" - android:layout_marginBottom="8dp" - android:layout_marginLeft="8dp" - android:layout_marginRight="8dp" - android:layout_marginTop="4dp" - android:layout_toRightOf="@id/txtvPosition" - android:ellipsize="end" - android:maxLines="1" - android:textColor="?android:attr/textColorSecondary" - android:textSize="@dimen/text_size_micro" /> + android:maxLines="2" + android:textSize="18sp" + android:fontFamily="sans-serif-condensed"/> </RelativeLayout> <ImageButton @@ -80,7 +53,7 @@ android:contentDescription="@string/pause_label" android:layout_width="@dimen/external_player_height" android:layout_height="@dimen/external_player_height" - android:background="?attr/borderless_button" /> + android:background="?attr/borderless_button"/> </LinearLayout> </LinearLayout>
\ No newline at end of file diff --git a/res/values/dimens.xml b/res/values/dimens.xml index f059f9814..5fe4a3207 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -4,7 +4,7 @@ <dimen name="widget_margin">8dp</dimen> <dimen name="thumbnail_length">70dp</dimen> <dimen name="dragview_length">54dp</dimen> - <dimen name="external_player_height">55dp</dimen> + <dimen name="external_player_height">70dp</dimen> <dimen name="enc_icons_size">20dp</dimen> <dimen name="text_size_micro">12sp</dimen> <dimen name="text_size_small">14sp</dimen> |