Fill ArrayList with colors for Android

后端 未结 5 603
夕颜
夕颜 2021-01-21 01:52

I want to create 2 ArrayList. One holding 16 colors, the other one holding 139.

I have the list with colors (both RGB as 255,126,32 and Hex as 0xFFFF2552). I want to use

5条回答
  •  旧巷少年郎
    2021-01-21 02:21

    You can also can use int[] colors = new int[]{color1.getRGB(),color2.getRGB()}; And decode using: Color color = new Color(colors[0]);

提交回复
热议问题