I want to generate the following layouts (s):
At the first stage, there are two layouts, layout 1 and layout 2, layout 1 and layout 2 have a 50% display width / height.
If I click Layout 1, this layout should overlay Layout 2 with a little animation, and a sublayer should be displayed in place of Layout 1. The layering is a gridview 2x2.
Can anyone decide how to customize the layout?
I tried as follows:
- I used LinearLayout for left and right layout, this means that I have two containers
- There are two possible sublayers in one layout. If I start, sublayer 1 will appear. If I click on the layout, sublayout2 is displayed. In this case, I set the size of sublayout1 to 0.0, and now it no longer hides sublayout2. It works.
- Now I want to translate sublayout1 to hide another conatiner. I made a small translation, but sublayout1, for example, does not overlap another container. At the moment, I asked me if I used the right approach to solve the whole problem.
fesp
source
share