Theme Android Extension

139 views
Skip to first unread message

Andres Daniel

unread,
Aug 25, 2017, 8:26:31 AM8/25/17
to MIT App Inventor Forum
Hello everyone

I share the Android Theme extension that allows changing the theme of the application in runtime.

You must have 2 screens for your operation

You must execute the method on the first Screen and then pass Screen2.


Hola a todos

comparto la extension Theme Android que permite cambiar el tema de la aplicacion en runtime.

se deben tener 2 screen para su funsionamiento 

se debe ejecutar el metodo en la primera Screen y luego pasar Screen2.




theme android.PNG
co.com.dendritas.AndroidThemes.aix

Evan Patton

unread,
Aug 25, 2017, 10:23:04 AM8/25/17
to MIT App Inventor Forum
Hi Andres,

Very interesting. How do you handle the fallback in the event that the phone in question doesn't have the theme? For example, if I run the method to use the Material theme but the phone is only running Android 4.0 (which has Holo), does it crash? Does it fall back to Holo? Or does nothing happen?

Evan

Andres Daniel

unread,
Aug 25, 2017, 10:41:07 AM8/25/17
to MIT App Inventor Forum
You can use this extension to check that api is and apply the indicated theme


saludos 

Andres
Reply all
Reply to author
Forward
0 new messages