android - Resolving if theme is changed for the activity -
i'm writing application should supports gui themes. there no problem applying , configuring it, there problem understanding theme changed particular activity.
there several activities use themes. , there 1 extends preferenceactivity
, provides functionality choose theme. id of choosed theme saved shared preference. when activity uses themes gets onresume()
called want check if current theme id equal 1 saved in shared preferences. theme
object doesn't have id or method identify it.
update: i'm considering having string name of current theme in each activity, solution looks rather ugly, because have add same variable each activity in application.
what correct way of doing check? doing wrong?
i have seen apps require restart app theme changes take effect. don't think that's problem. way can apply theme on startup , not worry again.
Comments
Post a Comment