Android studio | apply the new dynamic colors to your app [JAVA]

 

Starting from version 12, Android has a new color system which follow the wallpaper and named Color Pallette.

So to make your app looks fresh and full of life you can use this dynamic color for your apps in few simple steps :
  1. Set theme to Theme.material3.DayNight
  2. Create new Java [Or Kotlin] Class
  3. Extend this class to Application
  4. Override onCreate method
  5. Implement the dynamc colors to your activities
  6. And finaly change the name of application in your AndroidManifest.xml to your class name.
  7. Done! Enjoy.
Watch the tutorial :


Get the source code :

Post a Comment

Previous Post Next Post

نموذج الاتصال