Where can I find the green color small dot icon that shows "user is online" for material design Android? NOTE: I don't think that it is available in this https://material.io/tools/icons/?style=baseline and this https://materialdesignicons.com/ site.
Asked
Active
Viewed 6,578 times
5
-
https://materialdesignicons.com/icon/checkbox-blank-circle – Nikunj Jul 04 '18 at 05:46
1 Answers
8
Try this
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="10dp"
android:height="10dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#05b714"
android:pathData="M12,12m-10,0a10,10 0,1 1,20 0a10,10 0,1 1,-20 0"/>
</vector>
OUTPUT
USE LIKE THIS
<RelativeLayout
android:layout_width="100dp"
android:layout_height="100dp">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/profileImage"
android:layout_width="96dp"
android:layout_height="96dp"
android:src="@drawable/kid"
app:civ_border_color="#000"
app:civ_border_width="2dp" />
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_marginEnd="15dp"
android:layout_marginBottom="2dp"
android:src="@drawable/ic_online" />
</RelativeLayout>
OUTPUT

Shubham Suryavanshi
- 533
- 9
- 14

AskNilesh
- 67,701
- 16
- 123
- 163
-
A vector drawable for a simple circle? Why not just use a shape drawable..? – omiwrench Jul 15 '21 at 12:21