我有一个Layout
以我为中心,ScrollView
我想在不移动它的位置ImageView
的情况下放在它上面。Layout
我怎样才能做到这一点?
这是我的代码:
<ScrollView
android:id="@+id/scrollViewMain"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true" >
// LinearLayout with elements centered in ScrollView
<LinearLayout
android:id="@+id/linearLayoutMain2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:layout_gravity="center"
android:gravity="center"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical" >
...Elements inside layout...
</LinearLayout>
</ScrollView>
//ImageView I want to put just above LinearLayout without moving its position:
<ImageView
android:id="@+id/imageViewLogoFactor_main"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/logo_factorenergia" />