I have some application. I would like that this application had 2 screens in one activity. Normally I would use FragmentActivity but required Android 2.1> =. How to solve it? I read that you can use FrameLayout and hide depending on the desired screen.
Asked
Active
Viewed 69 times
0
-
1you can make use fragment below 3.0 version. check this http://stackoverflow.com/questions/6528691/fragments-in-android-2-2-1-2-3-2-0-is-this-possible. – Sulabh Gajjar May 13 '14 at 08:53
1 Answers
1
Here are your options:
- Use Fragments even on 2.1 via the Support Library v4
- Just use any container layout and toggle its visibility using
setVisibility()
.

FD_
- 12,947
- 4
- 35
- 62