开发者

How to draw List Under ImageView With transparent Areas

开发者 https://www.devze.com 2023-03-23 09:04 出处:网络
i was trying to let the ListView on Scroll pass the transparent area in the ImageView, like (Android Mar开发者_开发问答ket) style, but it wont.

How to draw List Under ImageView With transparent Areas

i was trying to let the ListView on Scroll pass the transparent area in the ImageView, like (Android Mar开发者_开发问答ket) style, but it wont. I've tried to set Padding to the ListView and still the problem appears, disable Clipping,

  • the green area should be transparent.

  • the red is the list.

  • and the blue pointer points to sample area that should be transparent, but the clipping cuts the children's in the list.

any ideas how to solve it?


You can put the ListView and the ImageView inside a FrameLayout and adjust the top padding/margin for the ListView to suit your needs. This way the ImageView will be drawn on top of the ListView.

Also, make sure that the ImageView doesn't have any background color defined and that the imageview's source png image is transparent.

0

精彩评论

暂无评论...
验证码 换一张
取 消