-1

Please guide me to add dynamic dotted border to image view like whatsapp doing in status screen, Kindly see the below image, I circled the functionality of that I want to achieve,

Whatsapp Status Screen

image

  • https://stackoverflow.com/questions/10316354/how-to-make-text-view-shape-circle-and-set-different-background-color-based-on-c/24778585 – Gowthaman M Feb 01 '18 at 06:03
  • https://stackoverflow.com/questions/35315005/how-to-represent-circle-border-with-multiple-colors-in-android/53231638#53231638 – 3llomi Nov 09 '18 at 18:44

1 Answers1

0

You can try CircularImageView. You can dynamically change borders. Maybe you'il have to make some arrangements. You can look at example project.

Example.

<com.mikhaellopez.circularimageview.CircularImageView
    android:layout_width="250dp"
    android:layout_height="250dp"
    android:src="@drawable/image"
    app:civ_border_color="#EEEEEE"
    app:civ_border_width="4dp"
    app:civ_shadow="true"
    app:civ_shadow_radius="10"
    app:civ_shadow_color="#8BC34A"/>
mesutpiskin
  • 1,771
  • 2
  • 26
  • 30
  • I want dotted dynamic border, please see the question properly. – Zeeshan Sardar Shahid Feb 01 '18 at 05:52
  • Maybe you can add a progress component to a CircularImageView. ex :https://stackoverflow.com/questions/21333866/how-to-create-a-circular-progressbar-in-android-which-rotates-on-it and https://stackoverflow.com/questions/35315005/how-to-represent-circle-border-with-multiple-colors-in-android – mesutpiskin Feb 01 '18 at 06:04