Android 如何将晶圆厂放在左边?

Android 如何将晶圆厂放在左边?,android,android-layout,floating-action-button,Android,Android Layout,Floating Action Button,如何在RTL中将工厂从右向左更改?问题是,在RTL中,晶圆厂不能改变位置 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_pare

如何在RTL中将工厂从右向左更改?问题是,在RTL中,晶圆厂不能改变位置

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:padding="20dp">

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="false"
        android:layout_gravity="left|end"
        android:layout_marginBottom="16dp"
        android:layout_marginRight="16dp"
        app:backgroundTint="@color/colorPrimary"
        app:borderWidth="0dp"
        app:elevation="8dp"
        app:fabSize="normal"
        app:srcCompat="@drawable/add_icon" />


</RelativeLayout>


将其添加到浮动按钮xml中

android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"

将此添加到浮动按钮xml

android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"