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
Post a Comment