Я создал макет, который содержит некоторые RadioGroup
s и RadioButton
s. Родительский макет RadioGroup
s - RelativeLayout
, и если возможно, я хотел бы остановиться с RelativeLayout
.Текст на радио для Android отключен
В большинстве устройств, то круг RadioButton
находится в левой части текста, как это должно быть, как это:
Но в некоторых устройствах (я заметил проблему с устройствами Samsung, которые установлены на иврите), круг фактически на текст, например:
Вот м у кода (я удалил другие элементы макета, которые не имеют отношение):
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/some_color1"
android:gravity="left" >
<RadioGroup
android:id="@+id/group1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/key1"
android:layout_below="@id/key5"
android:layout_marginTop="@dimen/size4"
android:orientation="horizontal" >
<RadioButton
android:id="@+id/u_hour"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:gravity="left|center_vertical"
android:text="@string/hour"
android:textSize="@dimen/size8" />
<RadioButton
android:id="@+id/u_day"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left|center_vertical"
android:text="@string/day"
android:textSize="@dimen/size8" />
<RadioButton
android:id="@+id/u_week"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left|center_vertical"
android:text="@string/week"
android:textSize="@dimen/size8" />
</RadioGroup>
Я не нашел ничего полезного с этой проблемой, может кто-то угодить покажите мне способ решить эту проблему?
Опубликовать свой макет – Manishika
Вы бы хотели опубликовать свой код или дома Шерлока исправить его – Trikaldarshi
ОК, я добавил свой макет. –