Skip to content

Instantly share code, notes, and snippets.

@zi6xuan
Created February 20, 2018 05:37
Show Gist options
  • Save zi6xuan/a85c128ae1ad6964ce928dbc818a0af3 to your computer and use it in GitHub Desktop.
Save zi6xuan/a85c128ae1ad6964ce928dbc818a0af3 to your computer and use it in GitHub Desktop.
通过shape绘制一个多层圆点,第一层背景主要用来当作外层描边,第二层是粗描边和内圆颜色
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:gravity="center">
<shape android:shape="oval">
<solid android:color="@color/colorPrimaryDark" />
</shape>
</item>
<item
android:bottom="1dp"
android:gravity="center"
android:left="1dp"
android:right="1dp"
android:top="1dp">
<shape android:shape="oval">
<solid android:color="@color/colorAccent" />
<stroke
android:width="2dp"
android:color="@android:color/white" />
</shape>
</item>
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment