Several knowledge points derived from the home page interface (3)

1. Rounded corners unequal length viewpageindicator
Android custom view

Two list negation
Sometimes we need to input the java list collection in reverse order. The reverse order output of java list is actually very simple. Just one line of code can reverse the original list.
If there is a set list, there is data in the list, now if the sets in the list are reversed, add this code
Collections.reverse(list); The original list data is passed in this code
With this code, the list is changing.
Of course, if you want to copy the list collection, it is also a sentence-one code List list1= Collections.copy(list);

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325808557&siteId=291194637