Although I find this approach strange, you should check the parent container of these views.
LinearLayout , View WebView.
, RelativeLayout , , :
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
( IMO) - ViewSwitcher ViewFlipper. showNext(), showPrevious() ( ViewFlipper) getNextView() ( ViewSwitcher). . .
:
<ViewSwitcher
android:id="@+id/view_switcher"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<View
android:scrollbars="none"
android:id="@+id/id_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<WebView
android:scrollbars="none"
android:id="@+id/id_webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</ViewSwitcher>
:
((ViewSwitcher) findViewById(R.id.view_switcher)).getNextView();
((ViewFlipper) findViewById(R.id.view_switcher)).showNext();
, Switcher 2 factory .
P.S. , .