Android. How do I keep a button displayed as PRESSED until the action created by that button is finished? Activated/Selected not usable -
i want keep imagebutton state-list drawable in "wait-for-action-finished" state long action not done.
i've seen other topics around problem. in case other solutions not working me because:
- i'm using layout (which contains buttons) in remoteview (but not there)
- i'm using same layout in recyclerview multi-selection capabilities. therefore activated/selected state used multi-selector implementation , not possible state-list drawable except not propagated selected-item child views => butotns
- using custom state not working remoteviews
- using tooglebutton not possible, because setenabled not available buttons/togglebuttons/compoundbuttons in remoteviews
it's not important "wait-for-action-finished" drawable shown in remoteview (but nice...), don't want duplicate layout. it's okay if wait-state shown in recyclerview items only. there should work along multiselector function.
i'm using imagebutton because can disabled in remoteview (in opposite button/togglebutton/compoundbutton in general).
any hints how solve this?
you have manually set state of button , keep there. solution give insight link
Comments
Post a Comment