I'm seeing a strange bug with my android application, where I've a checkbox which is associated with a dialog (ie' which shows up in UI as part of dialog).
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<FrameLayout
android:layout_width="@dimen/dialog_width"
android:layout_height="wrap_content">
<CheckBox
android:id="@+id/checkbox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorPrimary"
android:button="@null"
android:text="@string/textcontent"
android:textSize="@dimen/checkbox_text_size"
android:layout_gravity="end|center_vertical"
android:gravity="end"/>
</FrameLayout>
</LinearLayout>
When the language is set as Japanese ie' when the locale is set to JP - the jp resource corresponding to the string is not shown in UI.
Note: Tried debugging this issue with UIAutomatorViewer - I could see the japanese value for the string textcontent
is replaced within the layout - but the value seen on the screen is english
. I'm not sure why this discrepancy is observed.
Some help here would be appreciated !!
Aucun commentaire:
Enregistrer un commentaire