@RequiresApi(api = Build.VERSION_CODES.O) private int generateRandomColor() { Random rand = new Random(); float r = rand.nextFloat(); float g = rand.nextFloat(); float b = rand.nextFloat(); return Color.rgb(r, g, b); }