More fix for bug #8505156 WiFi properties dialog is having some issues in RTL mode

- use setPaddingRelative() instead of setPadding()
- add missing android:textAlignment="viewStart"

Change-Id: I8b981fb64686067de5998e4e218b04126bf2b2f8
This commit is contained in:
Fabrice Di Meglio
2013-04-02 18:36:43 -07:00
parent 1c541aec2b
commit f2a9717b93
2 changed files with 3 additions and 2 deletions

View File

@@ -18,7 +18,8 @@
style="@style/wifi_item" > style="@style/wifi_item" >
<TextView <TextView
style="@style/wifi_item_label" style="@style/wifi_item_label"
android:id="@+id/name" /> android:id="@+id/name"
android:textAlignment="viewStart" />
<TextView <TextView
android:id="@+id/value" android:id="@+id/value"

View File

@@ -1086,7 +1086,7 @@ public class WifiSettings extends SettingsPreferenceFragment
float titleHeight = resources.getFraction(R.dimen.setup_title_height, 1, 1); float titleHeight = resources.getFraction(R.dimen.setup_title_height, 1, 1);
float sideMargin = resources.getFraction(R.dimen.setup_border_width, 1, 1); float sideMargin = resources.getFraction(R.dimen.setup_border_width, 1, 1);
int bottom = resources.getDimensionPixelSize(R.dimen.setup_margin_bottom); int bottom = resources.getDimensionPixelSize(R.dimen.setup_margin_bottom);
setPadding( setPaddingRelative(
(int) (parentWidth * sideMargin), (int) (parentWidth * sideMargin),
0, 0,
(int) (parentWidth * sideMargin), (int) (parentWidth * sideMargin),