[英]Android draw view on canvas from HorizontalScrollView
I have in my layout sticky header within horizontallScrollView within scrollview. 我在scrollview的horizontallScrollView的布局中粘贴了标头。 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.
下面的图片说明了这个问题。
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. 从父级开始,然后使用addsubview在特定位置添加视图。
Android - add subview with layout params at specific index (in code) Android-在特定索引处添加带有布局参数的子视图(以代码形式)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.