A
A
Artem2015-04-07 16:15:55
Android
Artem, 2015-04-07 16:15:55

How to keep layout view when changing screen orientation?

There is a layout, when launched, a table of buttons is generated. The user can manipulate these buttons, but if he changes the orientation, the layout will restart. Is there any way to avoid restarting?
Ps is impossible, that is, the option to drive the button parameters (text, fill) into the database and re-draw them.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2015-04-07
@gmikhail94

Use snippets. retainInstance property.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question