Animated pop-ups inspired by XBOX.
Download APK (for Android KitKat+)GPL (App)
Library (MIT)
Copy AchievementUnlocked.Java class to your app. That's it!
- Initialise achievementUnlocked object
AchievementUnlocked achievementUnlocked = new AchievementUnlocked(getApplicationContext());
- Customise appearance
achievementUnlocked.setRounded(rounded).setLarge(large).setTopAligned(top).setDismissible(dismiss)
- Supply the aforementioned object with AcheievementData
AchievementData data = new AchievementData(); data.setTitle(title); data.setSubTitle(title); data.setIcon(iconFinal); data.setTextColor(textColor); data.setIconBackgroundColor(iconBG); data.setBackgroundColor(bg); data.setPopUpOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { } });
- Pop your data!
achievementUnlocked.show(data,data1,data2,data3);