Android 线性布局:showDividers=";“中”;不在RTL布局方向上工作

Android 线性布局:showDividers=";“中”;不在RTL布局方向上工作,android,android-layout,android-linearlayout,divider,Android,Android Layout,Android Linearlayout,Divider,因此,我有一个线性布局,我使用分隔符在项目之间添加一些间距: <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:showDividers="middle" android:divider="@drawable/spacer_standard">

因此,我有一个线性布局,我使用分隔符在项目之间添加一些间距:

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:showDividers="middle"
    android:divider="@drawable/spacer_standard">

    <TextView
        android:id="@+id/product_view_price"
        android:fontFamily="@font/primary_font"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:maxLines="1"/>

    <TextView
        android:id="@+id/product_view_sale_discount"
        android:fontFamily="@font/primary_font"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:maxLines="1"
        android:visibility="gone"
        tools:visibility="visible"/>
</LinearLayout>

当配置从左到右,但在从右到左的区域设置上,分隔符会显示,但会被忽略(它在文本视图后面呈现,并且不会应用间距),这一点与预期一样有效

以防万一,这是可拉制的分隔器

<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">

<size
    android:width="@dimen/standard_single_margin"
    android:height="@dimen/standard_single_margin" />

<solid android:color="@android:color/transparent" />


我知道我可以通过手动添加分隔符作为视图来解决问题,但我试图避免这种情况,因为我在其他更大的布局上也使用了这种分隔符

google不关心rtl。我用标签解决了这个问题