Subratsss
4/2/2018 - 2:25 PM

Random Circle Background

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval">
    <solid android:color="#87CEEB"/>

</shape>
((GradientDrawable)customerContactsItemHolder
    .customerDp.getBackground())
    .setColor(BillerUtils.getRandomColor());
public static int getRandomColor(){
        Random random = new Random();
        return Color.argb(255, random.nextInt(256), random.nextInt(256), random.nextInt(256));
    }