Unable to fold if there are buttons in expand cell
Closed this issue · 7 comments
in the expand cell ,i want to add some buttons and set listener for them ,but the expand cell can`t fold,can you give me some suggestions to solve it,thand you!
use the TextView replace Button can solve the problem
Do you have support for EditText Integration? I want add interaction on each card....
Sorry, I don't understand what you said. It can use EditText in the expand cell ,i ever used it
I want to use an EditText in the expanded cell, it is possible to integrate , but I have problems back to collapse the cell, as occurs when I add buttons. :(
May be the button hava the focus, do you try to use the TextView replace Button .
I ran into this same issue? Any way to retain the Button Functionality?
EDIT:
The problem is with the focusable attr.
< TextView
android:layout_width="wrap_content"
android:layout_height="wrap content"
android:text="Text"
style="@android:style/Widget.Button"
android:focusable="false" />
after setting button style set focusable to false and it works.
I added samples of working with button click handlers to listview example project in repo.