Android 将ltr应用于SearchView

Android 将ltr应用于SearchView,android,Android,我在gitHub有以下项目: 我已将布局设置为ltr方向: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:la

我在gitHub有以下项目:

我已将布局设置为ltr方向:

<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layoutDirection="ltr"
tools:context=".ui.MainActivity">
搜索光标也显示在右侧,这不是我所期望的


如何将ltr应用于我的SearchView?

正如您在布局中看到的,我正在使用:

<com.sylversky.indexablelistview.widget.IndexableRecyclerView
        android:id="@+id/recyclerView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipToPadding="false"
        android:paddingTop="?attr/actionBarSize"
        app:layoutManager="LinearLayoutManager" />

这会影响布局中的其他视图。

正如您在布局中看到的,我使用:

<com.sylversky.indexablelistview.widget.IndexableRecyclerView
        android:id="@+id/recyclerView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipToPadding="false"
        android:paddingTop="?attr/actionBarSize"
        app:layoutManager="LinearLayoutManager" />
这会影响布局中的其他视图

<com.sylversky.indexablelistview.widget.IndexableRecyclerView
        android:id="@+id/recyclerView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipToPadding="false"
        android:paddingTop="?attr/actionBarSize"
        app:layoutManager="LinearLayoutManager" />
android:supportsRtl="true"