如何将 ExpandableListview 的 header 文本对齐到最左边?

How I can align the header text of the ExpandableListview to the extreme left?

我正在使用可扩展列表视图,但我希望 "Store 1" 文本对齐到最左边。
我已将 GroupIndicator 设置为 null,但它只会隐藏组指示器。
我希望文本从最左边开始。
我不想要 space.

我怎样才能做到这一点?

<RelativeLayout
    android:layout_width="wrap_content"
    android:paddingRight="20dp"
    android:paddingLeft="20dp"
    android:paddingTop="8dp"
    android:layout_below="@+id/relativeLayout1"
    android:layout_height="match_parent">

    <ExpandableListView
        android:layout_width="wrap_content"
        android:divider="@android:color/transparent"
        android:groupIndicator="@null"
        android:layout_height="wrap_content"
        android:background="@drawable/border"
        android:id="@+id/expandableListViewwrittensales"
        android:layout_centerHorizontal="true"
        android:layout_below="@+id/relativeLayout" />


</RelativeLayout>`

组文字 xml .

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:background="@drawable/store"

    android:layout_height="match_parent">
    <TextView
        android:id="@+id/listTitle"

        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft"
        android:textColor="@color/abc_input_method_navigation_guard"
        android:paddingTop="5dp"
        android:layout_gravity="start"
        android:paddingBottom="5dp" />
</LinearLayout>

从您的群组布局中删除这一行:

android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft"

同时将 弃用的 fill_parent 替换为 match_parent