When you click on a list item (listview), what is shown in the screenshot (I do not know how to formulate) occurs. Why is this done, and how to fix it? Listview code

<ListView android:id="@+id/left_drawer" android:layout_width="240dp" android:layout_height="match_parent" android:layout_gravity="start" android:choiceMode="singleChoice android:divider="@android:color/transparent" android:dividerHeight="0px" android:background="#ffffff" android:drawSelectorOnTop="true" android:listSelector="#f0f1f2"/> 

Code drawer_list_item, which is used:

 <TextView xmlns:android="http://schemas.android.co m/apk/res/android" android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" android:textAppearance="? android:attr/textAppearanceListItemSmall" android:gravity="center_vertical" android:paddingLeft="16dp" android:paddingRight="16dp" android:textColor="#2e3033" android:background="#ffffff" android:minHeight="? android:attr/listPreferredItemHeightSmall"/> 

screen

    1 answer 1

    Look in other xml files for a line with the specified color, when creating a Drawer, a lot of files are created there, most likely somewhere there are selection color settings and so on.

    • Well, listSelector is only in main, where listview is user277004