开发者

Is it possible to change the UI at runtime and save changes in android application?

It is possible to bind android UI dynamically at run-time and keep the changes saved to be visible in the next time I h开发者_如何学Cave run the application on the device !?


You can change the UI diagrammatically. Save the chances (there is no standar way) to Shared Preferences and then onCreate check is there are any changed need to be mabe (by looking at SharedPreferences) and perform them before you draw the UI


Not that I know of. Any changes made while your app is running should be saved/reloaded using the Activity life cycle functions as described in this question: Saving Android Activity state using Save Instance State

If there is something specific you are trying to do that won't work with that design pattern, please give more details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜