This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private List<UserModel> filterDuplicateUsersInList(List<UserModel> topUsers, List<UserModel> lastUsers) { | |
// Create a set to filter out duplicates where LinkedHashSet maintain order | |
Set<UserModel> uniqueUsers = new LinkedHashSet<>(topUsers); | |
uniqueUsers.addAll(lastUsers); // Add all users from the second list | |
// Convert the set back to a list | |
List<UserModel> combinedUniqueList = new ArrayList<>(uniqueUsers); | |
Collections.sort(combinedUniqueList, new Comparator<UserModel>() { | |
@Override | |
public int compare(UserModel item, UserModel item2) { | |
Integer value = item.getRank(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shape="oval"> | |
<solid android:color="#F7F750" /> | |
<stroke | |
android:width="0.2dp" | |
android:color="#B8B83B" /> |