I use the following xml structure: (All layers are fullscreen)
- RelativeLayout - layout_1 (Visible)
- CurlView - layout_2 (Visible)
- RelativeLayout - layout_3 (Visible)
- CurlView - layout_4 (Visible)
- RelativeLayout - layout_5 (Visible)
Algorithm # 1:
- Hide layout_5, layout_4 => On the screen layout_3
- We are waiting for user action.
- Hide layout_3, layout_2 => On the screen layout_1.
- Display layout_5.
Algorithm # 2:
- Hide layout_5 => On the screen layout_4.
- We are waiting for user action.
- Display layout_5.
Algorithm # 1 works flawlessly, in Algorithm # 2, during execution of step 3, flickering occurs in the form of a short-term layout_3 display (several ms), although everything else is fine.
Code used for p.3:
layout_4.setVisibility(CurlView.INVISIBLE); layout_5.setVisibility(RelativeLayout.VISIBLE);
I will be glad to any help, thanks in advance.