android - AutoCompleteTextView Items not Clickable when containing ToggleButton -


i ran strange problem when dealing autocompletetextviews. i've got following layout items:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:minheight="48dp" android:orientation="horizontal" android:padding="8dp" >  <textview     android:id="@+id/name"     android:layout_width="0dp"     android:layout_weight="1"     android:layout_height="wrap_content"     android:layout_gravity="center_vertical"     android:text="some place visited"     android:textappearance="?android:attr/textappearancemedium" />  <togglebutton android:id="@+id/starred"     android:layout_width="32dp"     android:layout_height="32dp"     android:layout_gravity="center"     android:background="@drawable/starred"     android:texton=""     android:textoff=""/> </linearlayout> 

now adapter sets visiblity of togglebutton items gone , other visible. ítems it's gone work expected can click them , text gets put autocompletetextview togglebutton visible items don't respond touch. altough can interact togglebutton.

is there way make work autocompletetextviews or have use type of view.

simple make togglebutton row not focusable(with android:focusable="false" or in code, in adapter, btn.setfocusable(false)).


Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -