08-29-2012 03:02 AM
Hi,
I'm developing arabic application ob 9800.
Passing LOCALE_AWARE_LAYOUT to a HorizontalFieldManager is helping alot with rearranging the fields.
The problem is when switch to Arabic the fields are not recieving touch event on 9800, even normal fields like buttons and choice fields.
This problem does not appear on the 9380 full touch.
Thanks.
08-29-2012 05:08 AM
Hi ,
Can you plz post the code what ever you are using!
08-29-2012 06:13 AM
I suspect the code you are using is quite complicated. Can you simplify the code into a small self contained example that demonstrates the problem and post that? Then we can all review and test if we need too.
09-10-2012 03:15 AM
Sorry for the responding late.
This is the sample.
After changing the locale, the object choice field is not touchable, (actually you can touch it but not inside it)
The same code works fine on 9380.
public final class MyScreen extends MainScreen
{
ObjectChoiceField objectChoiceFormField;
String languageen[] = { "Option1", "Option2" };
boolean englishLan = true;
public MyScreen()
{
// Set the displayed title of the screen
setTitle("MyTitle");
HorizontalFieldManager manager = new HorizontalFieldManager(HorizontalFieldManager.LOCA LE_AWARE_LAYOUT);
manager.add(new LabelField("Choice :"));
objectChoiceFormField = new ObjectChoiceField("", languageen, 0, ObjectChoiceField.FIELD_LEFT);
manager.add(objectChoiceFormField);
ButtonField button = new ButtonField("CHANGE LANGUAGE")
{
protected boolean navigationClick(int status, int time)
{
if (englishLan)
{
Locale.setDefault(Locale.get(Locale.LOCALE_en));
englishLan = false;
}
else
{
Locale.setDefault(Locale.get(Locale.LOCALE_ar));
englishLan = true;
}
return true;
}
};
add(manager);
add(button);
}
}
Please tell me if I need to re-post this again to appear on the top of the forum so I can get more help.
Thanks.