0
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/RelativeLayout2"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollview1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/home_background"
android:fillViewport="true"
>
<RelativeLayout
android:id="@+id/RelativeLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TableLayout
android:id="@+id/tableLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="50dip"
android:gravity="center"
>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textColor="#FFFFFF"
android:text="text"
/>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textColor="#FFFFFF"
android:text="text"
/>
</TableRow>
....
</TableLayout>
</RelativeLayout>
</ScrollView>
<ImageView
android:id="@+id/logo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/logo"
android:layout_alignParentBottom="true"
/>
</RelativeLayout>
Ici, j'ai un scrollview avec un tas de rangées de table et un logo en bas. Le logo chevauche la table. Comment puis-je le faire passer sous le scrollview? Je l'ai déjà essayé avecComment régler zindex avec scrollview avec fond d'image
view.bringToFront();
et
view.setTranslationZ(-10);
Cependant, ce cache le logo parce que le scrollview a une image de fond.