diff options
author | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-06-30 18:47:15 -0400 |
---|---|---|
committer | Domingos Lopes <domingos86lopes+github@gmail.com> | 2016-06-30 19:21:54 -0400 |
commit | 000163ad219b7ebb84b23dcd96e13868a2c919a7 (patch) | |
tree | fc5ca80b2fec0a7fade2633adbc8f5b3400723a5 /app/src/play/res/layout | |
parent | a806d58966bca19cb89ca0b2b2d287f2611c3e36 (diff) | |
download | AntennaPod-000163ad219b7ebb84b23dcd96e13868a2c919a7.zip |
fix horizontal layout (MediaRouteControllerDialog)
Diffstat (limited to 'app/src/play/res/layout')
-rw-r--r-- | app/src/play/res/layout/media_router_controller.xml | 77 |
1 files changed, 34 insertions, 43 deletions
diff --git a/app/src/play/res/layout/media_router_controller.xml b/app/src/play/res/layout/media_router_controller.xml index 7d3889db2..659ac0a78 100644 --- a/app/src/play/res/layout/media_router_controller.xml +++ b/app/src/play/res/layout/media_router_controller.xml @@ -1,50 +1,41 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="vertical" android:layout_width="match_parent" - android:layout_height="wrap_content"> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/mrc_playback_control" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="@dimen/media_router_controller_playback_control_vertical_padding" + android:paddingBottom="@dimen/media_router_controller_playback_control_vertical_padding" + android:paddingLeft="@dimen/media_router_controller_playback_control_start_padding" + android:paddingStart="@dimen/media_router_controller_playback_control_start_padding" + android:paddingRight="@dimen/media_router_controller_playback_control_horizontal_spacing" + android:paddingEnd="@dimen/media_router_controller_playback_control_horizontal_spacing"> + <ImageButton android:id="@+id/mrc_control_play_pause" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/media_router_controller_playback_control_horizontal_spacing" + android:layout_marginStart="@dimen/media_router_controller_playback_control_horizontal_spacing" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:contentDescription="@string/mr_controller_play" + android:background="?attr/selectableItemBackgroundBorderless"/> - <RelativeLayout android:id="@+id/mrc_playback_control" - android:layout_width="match_parent" + <LinearLayout android:id="@+id/mrc_control_title_container" + android:orientation="vertical" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:orientation="horizontal" - android:paddingTop="16dp" - android:paddingBottom="16dp" - android:paddingLeft="24dp" - android:paddingStart="24dp" - android:paddingRight="12dp" - android:paddingEnd="12dp"> - <ImageButton android:id="@+id/mrc_control_play_pause" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_toLeftOf="@id/mrc_control_play_pause" + android:layout_toStartOf="@id/mrc_control_play_pause" + android:layout_centerVertical="true"> + <TextView android:id="@+id/mrc_control_title" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="12dp" - android:layout_marginStart="12dp" - android:layout_alignParentRight="true" - android:layout_alignParentEnd="true" - android:contentDescription="@string/mr_controller_play" - android:background="?attr/selectableItemBackgroundBorderless"/> - - <LinearLayout android:id="@+id/mrc_control_title_container" - android:orientation="vertical" + android:textAppearance="?attr/mediaRouteControllerPrimaryTextStyle"/> + <TextView android:id="@+id/mrc_control_subtitle" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentLeft="true" - android:layout_alignParentStart="true" - android:layout_toLeftOf="@id/mrc_control_play_pause" - android:layout_toStartOf="@id/mrc_control_play_pause" - android:layout_centerVertical="true"> - <TextView android:id="@+id/mrc_control_title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textAppearance="?attr/mediaRouteControllerPrimaryTextStyle"/> - <TextView android:id="@+id/mrc_control_subtitle" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textAppearance="?attr/mediaRouteControllerSecondaryTextStyle" - android:singleLine="true" /> - </LinearLayout> - </RelativeLayout> - - <View android:id="@+id/mrc_control_divider" - android:layout_width="fill_parent" - android:layout_height="8dp"/> -</LinearLayout> + android:textAppearance="?attr/mediaRouteControllerSecondaryTextStyle" + android:singleLine="true" /> + </LinearLayout> +</RelativeLayout> |