how not to lose the focus gridview android studio

1
 <GridView
            android:id="@+id/grid_view"
            android:layout_width="match_parent"
            android:layout_height="160dp"
            android:columnWidth="70dp"
            android:gravity="center"
            android:drawSelectorOnTop="true"
            android:listSelector="@drawable/my_awesome_background"
            android:numColumns="3"
            android:verticalSpacing="10dp"
            android:stretchMode="spacingWidth"/>

That's my grid view with the selector list

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

<!-- Selected -->
<item  android:drawable="@drawable/edit_border_image" />

What happens to me is the following, I lose the focus of the grid view that I select. Once I click on a grid view it is selected but after touching the edit text I lose focus and deselect it. In the example I show it looks like when you select on the grid view it is selected and when you click on the edit text you deselect it.

    
asked by jonatan diaz 27.08.2018 в 17:13
source

0 answers