Make Settings app aware of layout direction
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi) Change-Id: I696c0f66a16640af767da3c05b5d300fd2284ecb
This commit is contained in:
@@ -575,7 +575,7 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements
|
||||
activity.getActionBar().setCustomView(toggleSwitch,
|
||||
new ActionBar.LayoutParams(ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
Gravity.CENTER_VERTICAL | Gravity.RIGHT));
|
||||
Gravity.CENTER_VERTICAL | Gravity.END));
|
||||
return toggleSwitch;
|
||||
}
|
||||
|
||||
|
@@ -260,7 +260,7 @@ public class DevelopmentSettings extends PreferenceFragment
|
||||
activity.getActionBar().setCustomView(mEnabledSwitch, new ActionBar.LayoutParams(
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
Gravity.CENTER_VERTICAL | Gravity.RIGHT));
|
||||
Gravity.CENTER_VERTICAL | Gravity.END));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -80,7 +80,7 @@ public class DreamSettings extends SettingsPreferenceFragment {
|
||||
activity.getActionBar().setCustomView(mEnableSwitch, new ActionBar.LayoutParams(
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
Gravity.CENTER_VERTICAL | Gravity.RIGHT));
|
||||
Gravity.CENTER_VERTICAL | Gravity.END));
|
||||
activity.getActionBar().setTitle(R.string.screensaver_settings_title);
|
||||
}
|
||||
|
||||
|
@@ -125,7 +125,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment {
|
||||
activity.getActionBar().setCustomView(actionBarSwitch, new ActionBar.LayoutParams(
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
Gravity.CENTER_VERTICAL | Gravity.RIGHT));
|
||||
Gravity.CENTER_VERTICAL | Gravity.END));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -58,7 +58,7 @@ public class AndroidBeam extends Fragment
|
||||
activity.getActionBar().setCustomView(mActionBarSwitch, new ActionBar.LayoutParams(
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
Gravity.CENTER_VERTICAL | Gravity.RIGHT));
|
||||
Gravity.CENTER_VERTICAL | Gravity.END));
|
||||
activity.getActionBar().setTitle(R.string.android_beam_settings_title);
|
||||
}
|
||||
}
|
||||
|
@@ -38,7 +38,7 @@ import com.android.settings.R;
|
||||
public class ChartView extends FrameLayout {
|
||||
// TODO: extend something that supports two-dimensional scrolling
|
||||
|
||||
private static final int SWEEP_GRAVITY = Gravity.TOP | Gravity.LEFT;
|
||||
private static final int SWEEP_GRAVITY = Gravity.TOP | Gravity.START;
|
||||
|
||||
ChartAxis mHoriz;
|
||||
ChartAxis mVert;
|
||||
|
@@ -344,7 +344,7 @@ public class WifiSettings extends SettingsPreferenceFragment
|
||||
activity.getActionBar().setCustomView(actionBarSwitch, new ActionBar.LayoutParams(
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
ActionBar.LayoutParams.WRAP_CONTENT,
|
||||
Gravity.CENTER_VERTICAL | Gravity.RIGHT));
|
||||
Gravity.CENTER_VERTICAL | Gravity.END));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user