android - Overlaying a view does not disable actions on underlying view -


i have 2 views : view , view b. view rendered , has actions input text value. im displaying overlay view - view b on top of this. expect actions on view disabled not , im still able type in input field on view a. how can disable ?

the reason overlay not consuming touch events , design if view not consuming touch events events passed underlying view in view model. long answer make overlay touchable, focusable , , touch listener , return true . short answer add android:clickable="true" overlay view.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -