How to toggle the state of UI within a single Activity?

There is a Activity in which about five States UI, depending on which are shown the individual elements of the UI, and run animations. Besides, not each state, you can switch to another. In General the FSM in its purest form.
The question is how to properly implement Android (4+)? Is there any standard tools or intelligent library? The gugleniya anything intelligible did not give.
September 19th 19 at 13:30
1 answer
September 19th 19 at 13:32
Using snippets should help.
And in what way? - Carli.Rogahn12 commented on September 19th 19 at 13:35
: what do you want? What should the library? - kirstin_Hue commented on September 19th 19 at 13:38
: if you read carefully, you will see that the FSM (Finite-state machine, finite state machine). Why? To track and switch condition, and under status to change the view. Let's say I have activity a video player, it has controls that must hide in the place with the action, nav and status bar-AMI has timed out, and to appear on the Tapu, if hidden, also there are several fragments, some of which are displayed sequentially, and block the timeout. In total, under a dozen States need to monitor one activity. Video playback should not stop. To : I Wonder how I will help you fragments, if I already using?
I recently started to write under Android, and not yet sorted it out, so I ask, is there a similar functionality in the standard library (and traditionally called do not understand how), or is there a good third party. - Carli.Rogahn12 commented on September 19th 19 at 13:41
: Since the question has not been specifically stated that the correct implementation of the FSM, not UI States, it was logical to propose the use of fragments. - Markus commented on September 19th 19 at 13:44
: on Habre there was a post about something similar. - kirstin_Hue commented on September 19th 19 at 13:47
: it was said: "In General the FSM in its purest form." Where so specifically? - Carli.Rogahn12 commented on September 19th 19 at 13:50
: and you can reference, I seem to have the skill gugleniya insufficiently pumped. - Carli.Rogahn12 commented on September 19th 19 at 13:53
: I meant this: habrahabr.ru/post/245273 - kirstin_Hue commented on September 19th 19 at 13:56

Find more questions by tags Mobile developmentAndroid