Android百分比布局在RTL支持下不起作用
目前,我正在开发一款支持英语和阿拉伯语的android应用程序。我使用百分比布局进行设计,并使用RTL支持以阿拉伯语实现。但在百分比布局中,边距开始或边距结束不起作用。对于RTL支持的百分比布局有什么解决方案吗Android百分比布局在RTL支持下不起作用,android,Android,目前,我正在开发一款支持英语和阿拉伯语的android应用程序。我使用百分比布局进行设计,并使用RTL支持以阿拉伯语实现。但在百分比布局中,边距开始或边距结束不起作用。对于RTL支持的百分比布局有什么解决方案吗 不同的布局。。。“布局”中有一个默认值,而“布局rtl”中有第二个默认值?和margin\u right/left而不是margin\u end也许你可以发布“百分比”布局代码?我想他正在使用,但我同意你的观点,示例布局会有所帮助 <ImageView androi
不同的布局。。。“布局”中有一个默认值,而“布局rtl”中有第二个默认值?和margin\u right/left而不是margin\u end也许你可以发布“百分比”布局代码?我想他正在使用,但我同意你的观点,示例布局会有所帮助
<ImageView
android:id="@+id/logo"
android:layout_alignParentTop="true"
android:src="@drawable/logo_en"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
app:layout_heightPercent="7%"
app:layout_marginStartPercent="1.5%"
app:layout_marginTopPercent="0.5%"
app:layout_widthPercent="25%" />
<ToggleButton
android:id="@+id/lang"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:background="@drawable/lang_selector"
app:layout_heightPercent="7%"
app:layout_marginEndPercent="3.5%"
app:layout_marginTopPercent="0.5%"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
app:layout_widthPercent="10%"
android:textOff=""
android:textOn=""/>
<TextView
android:id="@+id/topic"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/lang"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:text="@string/title"
android:textColor="#6E6031"
app:layout_marginBottomPercent="2%"
app:layout_marginTopPercent="2%" />
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridView1"
android:layout_below="@+id/topic"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:numColumns="auto_fit"
android:stretchMode="columnWidth"
android:verticalSpacing="15sp"
app:layout_heightPercent="65%"
app:layout_marginStartPercent="6%"
app:layout_widthPercent="86%" />