2
Hello, I wonder how I could do to keep a picture fixed and the information rolls underneath it, with all this inside a Scrollview, follows layout print and XML
Code:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.hs.gui.testelayout.TelaTres"
android:orientation="vertical">
<TextView
android:layout_width="100dp"
android:layout_height="15dp"
android:text="Tela 3 - | - Final"/>
<ImageView
android:layout_width="350dp"
android:layout_height="250dp"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:paddingBottom="15dp"
android:foregroundGravity="center"
android:src="@drawable/guerra_civil_2"
android:scrollIndicators="start"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sinopse_CivWar"
android:textSize="25dp"/>
</LinearLayout>
</ScrollView>
I thought about keeping the image out of Scrollview but that doesn’t seem possible (or I don’t know how) Thank you for your attention :)
But would using Relativelayout not "break" the organization? Yes I have difficulty dealing with relative... Grateful :)
– Guilherme HS
No! Relax! I had difficulties with him too! But if you train ( start mecher to see how it works ) you get the hang of it quickly!
– Thiago Luiz Domacoski