Say I have the following layout :
<FrameLayout>
<Button>
<ImageView
android:height="match_parent"
android:width="match_parent"/>
</FrameLayout>
ImageView
spans the whole screen and covers the button below it, but I would still like to be able to click the button. Is this possible? What I want is to change focus to a certain view, ignoring the view hierarchy. In this case I would like to be able to push the button, ignoring the Imageview above it. Is this possible? Something like ImageView.setClickable(false)
or layering in Photoshop.
Is there a specific reason why the button can't be on top of the ImageView? If the reason is that the button should not be visible, you could set its background to @android:color/transparent.
Alternatively, have you seen this question ?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.