我想知道是否有可能绘制一个填充了一半的圆圈,如下所示:
如果可能的话,稍后我想填充这个cirlce或者将它留空只剩下边框,这很好但是无论如何都要添加动画吗?比如从一个空圆圈到一半填充或完全填充的圆圈发生过渡?
提前致谢
答案 0 :(得分:0)
尝试为其指定自定义背景,例如:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" >
<gradient
android:angle="0"
android:endColor="#FF000000"
android:startColor="#00000000" />
</shape>
答案 1 :(得分:0)
通过示例代码回答:
同时查看此答案:https://stackoverflow.com/a/22568222/1052261
<input type="checkbox" name="set_address" checked>
<input type="text" name="school" disabled>
输出: