Fill ArrayList with colors for Android

后端 未结 5 641
夕颜
夕颜 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:14

    I would make a text file or xml file populated with the color info and have a function that reads in each line of the file using a loop, creates a Color object for each line and adds it to the array list and then goes to the next line until there are no lines left.

提交回复
热议问题