One possibility is to use Viewstub.
Viewstub is a view light without dimensions that does not participate in the layout.
Create a layout for each part of the form.
In the Activity/Ragment layout where you want to submit the form declare a Viewstub for each part:
<FrameLayout ...>
<ViewStub
android:id="@+id/stub_parte1"
android:inflatedId="@+id/frm_parte1"
android:layout="@layout/formulario_parte1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<ViewStub
android:id="@+id/stub_parte2"
android:inflatedId="@+id/frm_parte2"
android:layout="@layout/formulario_parte2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
...
...
</FrameLayout>
To get a reference to each Viewstub use:
stub_parteX = ((ViewStub) findViewById(R.id.stub_parteX));
To bring to the screen each part of the form use:
View formulario_parteX = stub_parteX.inflate();
To hide a part use:
stub_parteX.setVisibility(View.GONE);
The advantage of using Viewstub over the traditional Hide/show of layouts, is the Viewstub maintain the hierarchy of views lighter, since the layouts are only added to the hierarchy after "inflated".
thanks, for the answer, I am testing several possibilities,and in the meantime I have a small error that I am trying to solve, but as soon as I can, I see your solution :)
– ZelDias