我有一个像这样的要求(下面的屏幕截图),我发现没有特殊的解决方案来在堆栈溢出中构建此布局。谁能帮我构建这个布局
地图将位于圆形/圆形视图内,红色边框将用作计时器,随着时间的减少,红色边框也会减少。
![](https://i.stack.imgur.com/3VpaC.png)
将地图显示为圆圈
我有一个......技巧解决方案给你:))
![enter image description here](https://i.stack.imgur.com/RzGgq.png)
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true">
<fragment
android:id="@+id/map"
android:name="your map"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_centerInParent="true" />
<LinearLayout
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_centerInParent="true"
android:background="@drawable/bg"
android:gravity="center">
</LinearLayout>
</RelativeLayout>
神奇之处在于图像bg
.周围的颜色必须与背景颜色相同
![enter image description here](https://i.stack.imgur.com/34Mjr.png)
红色边框将用作计时器,随着时间减少,红色边框
你可以用这个lib显示您的圈子进度条
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)