Pritam Kadam
Pritam Kadam

Reputation: 3285

Android Edittext in a Adapter not receiving focus

I have a edittext with other view inside a LinearLayout. I am using this layout as listview item. I have but instead of listview I am using a vertical LinearLayout to add these items because listview is not able to handle focus properly. So now wheni click on one of the edittext and then click on other it receives focus but cursor disappears. I am trying to implement CART sort of thing.

Upvotes: 1

Views: 260

Answers (1)

amodkanthe
amodkanthe

Reputation: 4530

add follwing line to listview

android:descendantFocusability="beforeDescendants"

and add following line to activty manifest

 android:windowSoftInputMode="adjustPan"

Upvotes: 2

Related Questions