diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-07-27 18:27:11 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2012-12-17 17:03:09 -0800 |
commit | 8afcd149970c79054a3a16377834aa0aec35eee0 (patch) | |
tree | 895b157fd2b52bf47b67cb610c73a621746d8b7d /packages/SystemUI/res/layout | |
parent | f50a37d30288aae5c05ef1cf266ed11772ca727e (diff) | |
download | frameworks_base-8afcd149970c79054a3a16377834aa0aec35eee0.zip frameworks_base-8afcd149970c79054a3a16377834aa0aec35eee0.tar.gz frameworks_base-8afcd149970c79054a3a16377834aa0aec35eee0.tar.bz2 |
Make SystemUI RTL aware
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)
Change-Id: Ica88ed68f893d5272691a9207788b65623849dee
Diffstat (limited to 'packages/SystemUI/res/layout')
26 files changed, 104 insertions, 104 deletions
diff --git a/packages/SystemUI/res/layout/battery_low.xml b/packages/SystemUI/res/layout/battery_low.xml index 3061743..2373355 100644 --- a/packages/SystemUI/res/layout/battery_low.xml +++ b/packages/SystemUI/res/layout/battery_low.xml @@ -30,7 +30,7 @@ android:layout_height="wrap_content" android:textSize="18sp" android:textColor="#ffffffff" - android:gravity="left" + android:gravity="start" android:text="@string/battery_low_subtitle" /> @@ -39,7 +39,7 @@ android:layout_height="wrap_content" android:textSize="18sp" android:textColor="#ffffffff" - android:gravity="left" + android:gravity="start" android:paddingBottom="16dp" /> diff --git a/packages/SystemUI/res/layout/compat_mode_help.xml b/packages/SystemUI/res/layout/compat_mode_help.xml index a354336..c2ed78e 100644 --- a/packages/SystemUI/res/layout/compat_mode_help.xml +++ b/packages/SystemUI/res/layout/compat_mode_help.xml @@ -27,9 +27,9 @@ android:id="@+id/header" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="80dp" + android:layout_marginStart="80dp" android:layout_marginTop="80dp" - android:layout_marginRight="80dp" + android:layout_marginEnd="80dp" android:textSize="60sp" android:maxLines="1" android:shadowRadius="8" @@ -51,7 +51,7 @@ android:layout_height="190dp" android:background="@drawable/compat_mode_help_divider_bottom" android:layout_marginBottom="55dp" - android:layout_marginRight="80dp" + android:layout_marginEnd="80dp" android:layout_alignLeft="@id/header" android:layout_alignParentBottom="true" > @@ -59,7 +59,7 @@ android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:src="@drawable/compat_mode_help_icon" android:contentDescription="@string/accessibility_compatibility_zoom_button" @@ -69,9 +69,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_alignParentLeft="true" - android:layout_toLeftOf="@id/icon" - android:layout_marginRight="10dp" + android:layout_alignParentStart="true" + android:layout_toStartOf="@id/icon" + android:layout_marginEnd="10dp" android:shadowRadius="4" android:shadowColor="#FF000000" android:textSize="28sp" diff --git a/packages/SystemUI/res/layout/navigation_bar.xml b/packages/SystemUI/res/layout/navigation_bar.xml index da52d89..09923a7 100644 --- a/packages/SystemUI/res/layout/navigation_bar.xml +++ b/packages/SystemUI/res/layout/navigation_bar.xml @@ -111,7 +111,7 @@ <ImageView android:layout_width="80dp" android:layout_height="match_parent" - android:layout_marginLeft="40dp" + android:layout_marginStart="40dp" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0" @@ -137,7 +137,7 @@ /> <ImageView android:layout_width="80dp" - android:layout_marginRight="40dp" + android:layout_marginEnd="40dp" android:layout_height="match_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" diff --git a/packages/SystemUI/res/layout/signal_cluster_view.xml b/packages/SystemUI/res/layout/signal_cluster_view.xml index 66c64c4..aab5083 100644 --- a/packages/SystemUI/res/layout/signal_cluster_view.xml +++ b/packages/SystemUI/res/layout/signal_cluster_view.xml @@ -28,13 +28,13 @@ android:id="@+id/wifi_combo" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_marginRight="-6dp" + android:layout_marginEnd="-6dp" > <ImageView android:id="@+id/wifi_signal" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:scaleType="center" /> @@ -55,13 +55,13 @@ android:id="@+id/wimax_combo" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_marginRight="-6dp" + android:layout_marginEnd="-6dp" > <ImageView android:id="@+id/wimax_signal" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:scaleType="center" /> @@ -101,7 +101,7 @@ android:id="@+id/mobile_inout" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_gravity="right|bottom" + android:layout_gravity="end|bottom" /> </FrameLayout> </FrameLayout> diff --git a/packages/SystemUI/res/layout/status_bar.xml b/packages/SystemUI/res/layout/status_bar.xml index bf20e9d..8805175 100644 --- a/packages/SystemUI/res/layout/status_bar.xml +++ b/packages/SystemUI/res/layout/status_bar.xml @@ -66,7 +66,7 @@ <com.android.systemui.statusbar.phone.IconMerger android:id="@+id/notificationIcons" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal"/> </LinearLayout> @@ -110,7 +110,7 @@ android:layout_height="match_parent" android:singleLine="true" android:paddingLeft="6dip" - android:gravity="center_vertical|left" + android:gravity="center_vertical|start" /> </LinearLayout> </LinearLayout> @@ -124,7 +124,7 @@ <ImageSwitcher android:id="@+id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" - android:layout_marginRight="4dip" + android:layout_marginEnd="4dip" > <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" diff --git a/packages/SystemUI/res/layout/status_bar_expanded.xml b/packages/SystemUI/res/layout/status_bar_expanded.xml index b71025e..1693e01 100644 --- a/packages/SystemUI/res/layout/status_bar_expanded.xml +++ b/packages/SystemUI/res/layout/status_bar_expanded.xml @@ -26,7 +26,7 @@ android:layout_height="wrap_content" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" - android:layout_marginLeft="@dimen/notification_panel_margin_left" + android:layout_marginStart="@dimen/notification_panel_margin_left" > <View diff --git a/packages/SystemUI/res/layout/status_bar_expanded_header.xml b/packages/SystemUI/res/layout/status_bar_expanded_header.xml index 556210e..54c63f8 100644 --- a/packages/SystemUI/res/layout/status_bar_expanded_header.xml +++ b/packages/SystemUI/res/layout/status_bar_expanded_header.xml @@ -39,7 +39,7 @@ android:id="@+id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginRight="8dp" + android:layout_marginEnd="8dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:layout_centerVertical="true" @@ -50,7 +50,7 @@ android:layout_height="wrap_content" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" - android:layout_toRightOf="@id/clock" + android:layout_toEndOf="@id/clock" android:layout_alignBaseline="@id/clock" /> </RelativeLayout> @@ -86,7 +86,7 @@ <FrameLayout android:id="@+id/settings_button_holder" android:layout_width="50dp" android:layout_height="50dp" - android:layout_marginLeft="12dp" + android:layout_marginStart="12dp" > <ImageView android:id="@+id/settings_button" android:layout_width="50dp" diff --git a/packages/SystemUI/res/layout/status_bar_help.xml b/packages/SystemUI/res/layout/status_bar_help.xml index 41bde4b..3c004ee 100644 --- a/packages/SystemUI/res/layout/status_bar_help.xml +++ b/packages/SystemUI/res/layout/status_bar_help.xml @@ -27,7 +27,7 @@ android:background="#DD000000" android:focusable="true" android:orientation="vertical" - android:gravity="top|left" + android:gravity="top|start" > <ImageView diff --git a/packages/SystemUI/res/layout/status_bar_icon.xml b/packages/SystemUI/res/layout/status_bar_icon.xml index d2ebf9e..063212e 100644 --- a/packages/SystemUI/res/layout/status_bar_icon.xml +++ b/packages/SystemUI/res/layout/status_bar_icon.xml @@ -33,8 +33,8 @@ <TextView android:id="@+id/number" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="right|bottom" - android:layout_marginRight="1dp" + android:layout_gravity="end|bottom" + android:layout_marginEnd="1dp" android:layout_marginBottom="1dp" android:textSize="10sp" android:textColor="#ffffffff" diff --git a/packages/SystemUI/res/layout/status_bar_notification_row.xml b/packages/SystemUI/res/layout/status_bar_notification_row.xml index 3dcdae8..2a93a2b 100644 --- a/packages/SystemUI/res/layout/status_bar_notification_row.xml +++ b/packages/SystemUI/res/layout/status_bar_notification_row.xml @@ -17,8 +17,8 @@ android:id="@+id/veto" android:layout_width="48dp" android:layout_height="match_parent" - android:gravity="right" - android:layout_marginRight="-80dp" + android:gravity="end" + android:layout_marginEnd="-80dp" android:background="@null" android:paddingRight="8dp" android:paddingLeft="8dp" @@ -54,7 +54,7 @@ android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="bottom|right" + android:layout_gravity="bottom|end" android:fontFamily="sans-serif-condensed" android:textSize="9dp" android:textStyle="bold" diff --git a/packages/SystemUI/res/layout/status_bar_recent_item.xml b/packages/SystemUI/res/layout/status_bar_recent_item.xml index e2b5723..7ce3a09 100644 --- a/packages/SystemUI/res/layout/status_bar_recent_item.xml +++ b/packages/SystemUI/res/layout/status_bar_recent_item.xml @@ -40,10 +40,10 @@ android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:scrollHorizontally="true" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_alignTop="@+id/app_icon" android:paddingTop="2dp" - android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" + android:layout_marginStart="@dimen/status_bar_recents_app_label_left_margin" android:singleLine="true" android:ellipsize="marquee" android:textColor="@color/status_bar_recents_app_label_color" @@ -53,8 +53,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" - android:layout_toRightOf="@id/app_label" - android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" + android:layout_toEndOf="@id/app_label" + android:layout_marginStart="@dimen/status_bar_recents_thumbnail_left_margin" android:background="@drawable/recents_thumbnail_bg" android:foreground="@drawable/recents_thumbnail_fg" android:visibility="invisible"> @@ -66,11 +66,11 @@ <View android:id="@+id/recents_callout_line" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="1dip" - android:layout_alignParentLeft="true" - android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" - android:layout_toLeftOf="@id/app_thumbnail" + android:layout_alignParentStart="true" + android:layout_marginStart="@dimen/status_bar_recents_app_label_left_margin" + android:layout_toStartOf="@id/app_thumbnail" android:layout_below="@id/app_label" - android:layout_marginRight="3dip" + android:layout_marginEnd="3dip" android:layout_marginTop="3dip" android:background="@drawable/recents_callout_line" /> @@ -78,8 +78,8 @@ <ImageView android:id="@id/app_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_toRightOf="@id/app_label" - android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" + android:layout_toEndOf="@id/app_label" + android:layout_marginStart="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" @@ -95,8 +95,8 @@ android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:scrollHorizontally="true" - android:layout_alignParentLeft="true" - android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" + android:layout_alignParentStart="true" + android:layout_marginStart="@dimen/status_bar_recents_app_label_left_margin" android:layout_below="@id/recents_callout_line" android:layout_marginTop="3dip" android:singleLine="true" diff --git a/packages/SystemUI/res/layout/status_bar_recent_panel.xml b/packages/SystemUI/res/layout/status_bar_recent_panel.xml index 7335f86..4bbe277 100644 --- a/packages/SystemUI/res/layout/status_bar_recent_panel.xml +++ b/packages/SystemUI/res/layout/status_bar_recent_panel.xml @@ -37,13 +37,13 @@ android:id="@+id/recents_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginRight="0dp" + android:layout_marginEnd="0dp" android:divider="@null" android:stackFromBottom="true" android:fadingEdge="vertical" android:scrollbars="none" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" - android:layout_gravity="bottom|left" + android:layout_gravity="bottom|start" android:clipToPadding="false" android:clipChildren="false"> diff --git a/packages/SystemUI/res/layout/status_bar_toggle_slider.xml b/packages/SystemUI/res/layout/status_bar_toggle_slider.xml index 3105dab..e3cd704 100644 --- a/packages/SystemUI/res/layout/status_bar_toggle_slider.xml +++ b/packages/SystemUI/res/layout/status_bar_toggle_slider.xml @@ -24,7 +24,7 @@ android:id="@+id/toggle" android:layout_width="48dp" android:layout_height="0dp" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_alignParentTop="true" android:layout_alignParentBottom="true" android:button="@null" @@ -33,9 +33,9 @@ android:id="@+id/slider" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_toRightOf="@id/toggle" + android:layout_toEndOf="@id/toggle" android:layout_centerVertical="true" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:paddingLeft="20dp" android:paddingRight="20dp" /> diff --git a/packages/SystemUI/res/layout/system_bar.xml b/packages/SystemUI/res/layout/system_bar.xml index c13b113..ac62702 100644 --- a/packages/SystemUI/res/layout/system_bar.xml +++ b/packages/SystemUI/res/layout/system_bar.xml @@ -39,7 +39,7 @@ <include layout="@layout/system_bar_notification_area" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_marginTop="1dp" /> @@ -48,7 +48,7 @@ android:id="@+id/navigationArea" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:orientation="horizontal" android:clipChildren="false" android:clipToPadding="false" @@ -93,8 +93,8 @@ android:layout_width="0dp" android:paddingLeft="8dip" android:paddingRight="8dip" - android:layout_toRightOf="@+id/navigationArea" - android:layout_toLeftOf="@+id/notificationArea" + android:layout_toEndOf="@+id/navigationArea" + android:layout_toStartOf="@+id/notificationArea" android:visibility="gone" /> </RelativeLayout> @@ -119,7 +119,7 @@ android:layout_width="80dip" android:layout_height="48dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_alignParentBottom="true" /> <ImageView @@ -127,7 +127,7 @@ android:layout_width="80dip" android:layout_height="48dip" android:src="@drawable/ic_sysbar_lights_out_dot_large" - android:layout_toRightOf="@+id/dot0" + android:layout_toEndOf="@+id/dot0" android:layout_alignParentBottom="true" /> <ImageView @@ -135,7 +135,7 @@ android:layout_width="80dip" android:layout_height="48dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" - android:layout_toRightOf="@+id/dot1" + android:layout_toEndOf="@+id/dot1" android:layout_alignParentBottom="true" /> <ImageView @@ -143,7 +143,7 @@ android:layout_width="80dip" android:layout_height="48dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_alignParentBottom="true" /> </RelativeLayout> diff --git a/packages/SystemUI/res/layout/system_bar_input_methods_item.xml b/packages/SystemUI/res/layout/system_bar_input_methods_item.xml index 5515559..710406c 100644 --- a/packages/SystemUI/res/layout/system_bar_input_methods_item.xml +++ b/packages/SystemUI/res/layout/system_bar_input_methods_item.xml @@ -71,7 +71,7 @@ <TextView android:id="@+id/item_subtitle" android:layout_marginTop="-4dip" - android:layout_gravity="center_vertical|left" + android:layout_gravity="center_vertical|start" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceSmall" /> @@ -87,7 +87,7 @@ android:id="@+id/item_settings_icon" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_marginLeft="5dip" + android:layout_marginStart="5dip" android:layout_gravity="center_vertical" android:paddingRight="10dip" android:paddingLeft="10dip" diff --git a/packages/SystemUI/res/layout/system_bar_input_methods_panel.xml b/packages/SystemUI/res/layout/system_bar_input_methods_panel.xml index 8dede50..ecc4f1e 100644 --- a/packages/SystemUI/res/layout/system_bar_input_methods_panel.xml +++ b/packages/SystemUI/res/layout/system_bar_input_methods_panel.xml @@ -36,7 +36,7 @@ <LinearLayout android:layout_width="450dip" android:layout_height="wrap_content" - android:layout_marginLeft="20dip" + android:layout_marginStart="20dip" android:orientation="vertical" android:background="@drawable/notify_panel_clock_bg"> <!-- Hard keyboard switch --> @@ -71,7 +71,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginRight="16dip" /> + android:layout_marginEnd="16dip" /> </LinearLayout> <View android:layout_width="match_parent" diff --git a/packages/SystemUI/res/layout/system_bar_no_recent_apps.xml b/packages/SystemUI/res/layout/system_bar_no_recent_apps.xml index bc89281..c023ef7 100644 --- a/packages/SystemUI/res/layout/system_bar_no_recent_apps.xml +++ b/packages/SystemUI/res/layout/system_bar_no_recent_apps.xml @@ -30,7 +30,7 @@ android:textSize="20dp" android:textColor="@android:color/holo_blue_light" android:text="@string/status_bar_no_recent_apps" - android:gravity="left" - android:layout_gravity="bottom|left" + android:gravity="start" + android:layout_gravity="bottom|start" /> </FrameLayout> diff --git a/packages/SystemUI/res/layout/system_bar_notification_area.xml b/packages/SystemUI/res/layout/system_bar_notification_area.xml index a59dad2..51ffda7 100644 --- a/packages/SystemUI/res/layout/system_bar_notification_area.xml +++ b/packages/SystemUI/res/layout/system_bar_notification_area.xml @@ -22,7 +22,7 @@ android:id="@+id/notificationArea" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:orientation="horizontal" android:background="?android:attr/listChoiceBackgroundIndicator" android:clickable="true" @@ -39,7 +39,7 @@ android:id="@+id/imeSwitchButton" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_marginLeft="8dip" + android:layout_marginStart="8dip" android:src="@drawable/ic_sysbar_ime_default" android:visibility="gone" android:contentDescription="@string/accessibility_ime_switch_button" @@ -49,7 +49,7 @@ android:id="@+id/compatModeButton" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_marginLeft="8dip" + android:layout_marginStart="8dip" android:src="@drawable/ic_sysbar_zoom" android:visibility="gone" android:contentDescription="@string/accessibility_compatibility_zoom_button" @@ -66,7 +66,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center_vertical" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:alpha="0.4" /> </com.android.systemui.statusbar.tablet.NotificationIconArea> @@ -85,16 +85,16 @@ android:layout_height="match_parent" android:singleLine="true" android:paddingLeft="6dip" - android:layout_marginRight="8dip" - android:gravity="center_vertical|left" + android:layout_marginEnd="8dip" + android:gravity="center_vertical|start" /> <TextView android:id="@+id/network_text" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_marginRight="6dip" - android:layout_marginLeft="6dip" + android:layout_marginEnd="6dip" + android:layout_marginStart="6dip" android:gravity="center" android:singleLine="true" android:visibility="gone" @@ -106,7 +106,7 @@ android:id="@+id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" android:orientation="horizontal" android:gravity="center" > diff --git a/packages/SystemUI/res/layout/system_bar_notification_panel.xml b/packages/SystemUI/res/layout/system_bar_notification_panel.xml index 315639e..58a6de3 100644 --- a/packages/SystemUI/res/layout/system_bar_notification_panel.xml +++ b/packages/SystemUI/res/layout/system_bar_notification_panel.xml @@ -21,7 +21,7 @@ android:id="@+id/content_parent" android:layout_height="match_parent" android:layout_width="match_parent" - android:gravity="right" + android:gravity="end" > <!-- lift the panel up off the status bar while leaving a touchable are --> @@ -29,7 +29,7 @@ android:id="@+id/system_bar_notification_panel_bottom_space" android:layout_height="56dp" android:layout_width="478dp" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_alignParentBottom="true" /> @@ -39,7 +39,7 @@ android:layout_height="wrap_content" android:layout_width="478dp" android:orientation="vertical" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_above="@id/system_bar_notification_panel_bottom_space" android:paddingBottom="8dp" > @@ -48,7 +48,7 @@ android:layout_width="match_parent" android:layout_height="130dp" android:layout_above="@id/content_frame" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_weight="0" /> diff --git a/packages/SystemUI/res/layout/system_bar_notification_panel_title.xml b/packages/SystemUI/res/layout/system_bar_notification_panel_title.xml index 59544f4..97f774a 100644 --- a/packages/SystemUI/res/layout/system_bar_notification_panel_title.xml +++ b/packages/SystemUI/res/layout/system_bar_notification_panel_title.xml @@ -32,7 +32,7 @@ android:id="@+id/icons" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_alignParentBottom="true" android:layout_marginTop="16dp" android:layout_marginBottom="16dp" @@ -86,7 +86,7 @@ <TextView android:id="@+id/mobile_text" style="@style/SystemBarNotificationText" - android:layout_gravity="left|center_vertical" + android:layout_gravity="start|center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingRight="12dp" @@ -122,7 +122,7 @@ <TextView android:id="@+id/wifi_text" style="@style/SystemBarNotificationText" - android:layout_gravity="left|center_vertical" + android:layout_gravity="start|center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingRight="12dp" @@ -147,7 +147,7 @@ style="@style/SystemBarNotificationText" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="left|center_vertical" + android:layout_gravity="start|center_vertical" android:paddingRight="2dp" android:singleLine="true" android:text="@string/status_bar_settings_settings_button" @@ -209,8 +209,8 @@ android:id="@+id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" - android:layout_marginRight="8dp" + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" android:textAppearance="@style/TextAppearance.SystemBar.Expanded.Date" /> diff --git a/packages/SystemUI/res/layout/system_bar_recent_item.xml b/packages/SystemUI/res/layout/system_bar_recent_item.xml index b5f7da7..34f60b2 100644 --- a/packages/SystemUI/res/layout/system_bar_recent_item.xml +++ b/packages/SystemUI/res/layout/system_bar_recent_item.xml @@ -30,9 +30,9 @@ android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:scrollHorizontally="true" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_alignParentTop="true" - android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" + android:layout_marginStart="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="32dip" android:singleLine="true" android:ellipsize="marquee" @@ -43,8 +43,8 @@ <FrameLayout android:id="@+id/app_thumbnail" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_toRightOf="@id/app_label" - android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" + android:layout_toEndOf="@id/app_label" + android:layout_marginStart="@dimen/status_bar_recents_thumbnail_left_margin" android:scaleType="center" android:background="@drawable/recents_thumbnail_bg" android:foreground="@drawable/recents_thumbnail_fg" @@ -59,8 +59,8 @@ <ImageView android:id="@+id/app_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_toRightOf="@id/app_label" - android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" + android:layout_toEndOf="@id/app_label" + android:layout_marginStart="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" @@ -75,10 +75,10 @@ android:layout_height="1dip" android:layout_below="@id/app_label" android:layout_marginTop="3dip" - android:layout_alignParentLeft="true" - android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" - android:layout_toLeftOf="@id/app_thumbnail" - android:layout_marginRight="3dip" + android:layout_alignParentStart="true" + android:layout_marginStart="@dimen/status_bar_recents_app_label_left_margin" + android:layout_toStartOf="@id/app_thumbnail" + android:layout_marginEnd="3dip" android:background="@drawable/recents_callout_line" /> @@ -89,9 +89,9 @@ android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:scrollHorizontally="true" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_below="@id/recents_callout_line" - android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" + android:layout_marginStart="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3dip" android:singleLine="true" android:ellipsize="marquee" diff --git a/packages/SystemUI/res/layout/system_bar_recent_panel.xml b/packages/SystemUI/res/layout/system_bar_recent_panel.xml index 3951bba..aed8a8c 100644 --- a/packages/SystemUI/res/layout/system_bar_recent_panel.xml +++ b/packages/SystemUI/res/layout/system_bar_recent_panel.xml @@ -41,13 +41,13 @@ <com.android.systemui.recent.RecentsVerticalScrollView android:id="@+id/recents_container" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" + android:layout_marginEnd="@dimen/status_bar_recents_right_glow_margin" android:divider="@null" android:stackFromBottom="true" android:fadingEdge="vertical" android:scrollbars="none" android:fadingEdgeLength="20dip" - android:layout_gravity="bottom|left" + android:layout_gravity="bottom|start" android:clipToPadding="false" android:clipChildren="false"> @@ -65,7 +65,7 @@ android:id="@+id/recents_no_apps" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginLeft="58dip" + android:layout_marginStart="58dip" android:layout_marginBottom="36dip" android:visibility="invisible" /> @@ -76,7 +76,7 @@ android:layout_width="match_parent" android:layout_height="@*android:dimen/system_bar_height" android:layout_alignParentBottom="true" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> diff --git a/packages/SystemUI/res/layout/system_bar_settings_view.xml b/packages/SystemUI/res/layout/system_bar_settings_view.xml index d07e45d..3e959d5 100644 --- a/packages/SystemUI/res/layout/system_bar_settings_view.xml +++ b/packages/SystemUI/res/layout/system_bar_settings_view.xml @@ -43,7 +43,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginRight="5dp" + android:layout_marginEnd="5dp" /> </LinearLayout> <View style="@style/SystemBarPanelSettingsPanelSeparator" /> @@ -86,7 +86,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginRight="5dp" + android:layout_marginEnd="5dp" /> </LinearLayout> <View @@ -105,7 +105,7 @@ android:layout_width="0dp" android:layout_height="fill_parent" android:layout_weight="1" - android:layout_marginRight="2dp" + android:layout_marginEnd="2dp" systemui:text="@string/status_bar_settings_auto_brightness_label" /> </LinearLayout> @@ -130,7 +130,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginRight="5dp" + android:layout_marginEnd="5dp" /> </LinearLayout> <View style="@style/SystemBarPanelSettingsPanelSeparator" /> diff --git a/packages/SystemUI/res/layout/system_bar_ticker_compat.xml b/packages/SystemUI/res/layout/system_bar_ticker_compat.xml index 0d255e7..14cdc40 100644 --- a/packages/SystemUI/res/layout/system_bar_ticker_compat.xml +++ b/packages/SystemUI/res/layout/system_bar_ticker_compat.xml @@ -50,7 +50,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center_vertical" - android:layout_marginLeft="12dp" + android:layout_marginStart="12dp" android:gravity="center_vertical" android:maxLines="2" /> diff --git a/packages/SystemUI/res/layout/system_bar_ticker_panel.xml b/packages/SystemUI/res/layout/system_bar_ticker_panel.xml index 1738b48..49d0405 100644 --- a/packages/SystemUI/res/layout/system_bar_ticker_panel.xml +++ b/packages/SystemUI/res/layout/system_bar_ticker_panel.xml @@ -25,7 +25,7 @@ android:layout_height="@*android:dimen/system_bar_height" android:layout_width="match_parent" android:background="@drawable/system_bar_ticker_background" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_alignParentBottom="true" android:clickable="false" /> @@ -36,7 +36,7 @@ android:layout_height="@android:dimen/notification_large_icon_width" android:scaleType="center" android:visibility="gone" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_alignParentBottom="true" /> @@ -45,7 +45,7 @@ android:layout_weight="1" android:layout_height="@*android:dimen/system_bar_height" android:layout_width="match_parent" - android:layout_toRightOf="@id/large_icon" + android:layout_toEndOf="@id/large_icon" android:layout_alignParentBottom="true" android:layout_alignWithParentIfMissing="true" /> diff --git a/packages/SystemUI/res/layout/universe.xml b/packages/SystemUI/res/layout/universe.xml index 6102d2e..390c467 100644 --- a/packages/SystemUI/res/layout/universe.xml +++ b/packages/SystemUI/res/layout/universe.xml @@ -22,7 +22,7 @@ <Button android:id="@+id/close" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentTop="true" android:layout_alignParentRight="true" + android:layout_alignParentTop="true" android:layout_alignParentEnd="true" android:text="@string/close_universe" /> <TextView android:id="@+id/title" |