Android 如何将radiobutton图标置于MaterialRadioButton视图的中心?

Android 如何将radiobutton图标置于MaterialRadioButton视图的中心?,android,android-layout,Android,Android Layout,是否可以在没有文本的情况下将单选按钮居中(MaterialRadioButton)?XML中是否有这样的转换 <androidx.appcompat.widget.LinearLayoutCompat android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"

是否可以在没有文本的情况下将单选按钮居中(MaterialRadioButton)?XML中是否有这样的转换

<androidx.appcompat.widget.LinearLayoutCompat
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">

    <com.google.android.material.textfield.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBo
        android:hint="Car Coordinate Latitude"
        android:enabled="true"
        android:layout_weight="1"
        android:layout_marginEnd="2dp"
        >
        <com.google.android.material.textfield.TextInputEditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:clickable="false"
            android:cursorVisible="false"
            android:focusable="false"
            android:focusableInTouchMode="false"
            />
    </com.google.android.material.textfield.TextInputLayout>
    <com.google.android.material.textfield.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBo
        android:hint="Car Coordinate Longitude"
        android:enabled="true"
        android:layout_weight="1"
        android:layout_marginStart="2dp"
        >
        <com.google.android.material.textfield.TextInputEditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:clickable="false"
            android:cursorVisible="false"
            android:focusable="false"
            android:focusableInTouchMode="false"
            />
    </com.google.android.material.textfield.TextInputLayout>
    <com.google.android.material.radiobutton.MaterialRadioButton
        android:layout_width="wrap_content"
        android:layout_height="match_parent" />
</androidx.appcompat.widget.LinearLayoutCompat>

正如您从代码中看到的,我的按钮位于末尾,没有文本(应该是前面两个字段的选择器(见图))。我希望单选按钮位于正方形的中心,而不是与不存在的文本的左侧对齐

RG