简体   繁体   中英

Android draw view on canvas from HorizontalScrollView

I have in my layout sticky header within horizontallScrollView within scrollview. I make my header sticky by draw header view on canvas. My problem is that i don't know how to scroll view(blue), to draw another part of its. This problem is ilustrated by image belowe.

从horizo​​ntalScrollView在画布上绘制视图

Now i know only how to draw blue part of header view. But i want draw yellow part of view. Could You give me same advice?

Start with the parent and use addsubview to add the views in particular places.

Android - add subview with layout params at specific index (in code)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM