Color.xml:
- #448AFF
- #FFC107
- #009688
- #ff8000
- #ffbf00
- #0000ff
- #936c6c
- #7733ff
- #7733ff
- #ff8000
- #448AFF
- #0000ff
activity.java file
Context context;
String[] colors = context.getResources().getStringArray(R.array.listcolors);
String bg_color = colors[i]; //i=1,2,3...