Get activity theme from network and apply it programmatically
I want to download themes.xml from network because i开发者_如何学Go need dinamically change application theme. So after application starts, download file themes.xml from network, saves it locally and apply to current activity.
How i can do this?
Thank you.
in oncreate functions, get the value from network and do like this:
if (valueRecievedFromNetwork == "Dialog")
this.setTheme(android.R.style.Theme_Dialog);
else if.......
精彩评论