MadHatter MadHatter - 6 months ago 42
Android Question

How to know what view i should display

I have a user sign-in layout when the user clicks the sign-in there will be two possible layouts.

The 1st one would be the dashboard(layout A) with a button to time-in then if clicked it would open another layout(layout B).

The 2nd possible layout is when the time-in have already been click it will automatically show the layout B.


Save a boolean value in SharedPreference once you enter the Layout A. So check while user click on sign in whether that boolean is already set and show the corresponding layout.