[英]Draw a view in canvas
I would use shapes to draw the circles.我会使用形状来绘制圆圈。 Like that:像那样:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" > <solid android:color="@color/yeallow"/> </shape>
You could create a view and use its shape as background.您可以创建一个视图并将其形状用作背景。
And if you want a view pager behaviour, you could put together a bunch of circles inside a Linear layout and change them according to the view pager`s page.如果你想要一个视图寻呼机的行为,你可以把一堆圆圈放在一个线性布局中,并根据视图寻呼机的页面来改变它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.