FrameLayout dentro de ScrollView
Soy nuevo en el desarrollo de Android y tengo el siguiente problema. Necesito usarFrameLayout
dentro deScrollView
Para hacerlo desplazable. yo escribí esto
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="#00ff00">
<FrameLayout
android:id="@+id/frameLayout"
android:layout_width="match_parent"
android:layout_height="500dp"
android:background="#ff0000">
</FrameLayout>
</ScrollView>
Pero esto no funciona. Lo intenté enRelativeLayout
y funcionó, pero necesito usar paraFrameLayout
. ¿Algunas ideas?