Saturday, 17 August 2013

PreferenceActivity Localization

PreferenceActivity Localization

am working in a multi language Alarm android application with :
1 xml file [alarm_settings.xml]
2 string.xml files [English & arabic]

The problem is that the localization is not working in the right way,
below you can find 4 images 2 for my application and 2 for the device's
Settings

When you look at these 4 images you can find that in my application the
localization works only for the text not for the alignment of views , but
you can find in the device's settings that the localization works for both
of them - text , views - .
So is it a special case for the device's settings views or i can make my
views to be localized like the Device's settings ?!
.java File :
public class MainActivity extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.alarm_settings);
}
}
thanks

No comments:

Post a Comment