Comment puis-je supprimer cet espace blanc en bas de l'écran. J'ai également essayé android:adjustviewbounds
et android:scaletype
. Mais toujours échoué à supprimer l'espace blanc au bas de l'écran. Aidez-moi s'il vous plaît à optimiser ma disposition afin que je puisse enlever cet espace blanc laid du fond.Supprimer les espaces blancs du bas de l'écran Android
Voici la capture d'écran ci-dessous de mon écran de mise en page.
Voici mon code XML de la mise en page.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="wrap_content"
android:layout_width="match_parent"
tools:context="com.example.zohai.v360.Fragments.Home">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="190dp"
android:layout_marginTop="-15dp">
<ImageView
android:id="@+id/intro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:adjustViewBounds="true"
android:background="@drawable/intro"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="190dp"
android:layout_marginTop="-15dp"
>
<ImageView
android:id="@+id/photog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/photographers"
android:adjustViewBounds="true"
android:scaleType="fitXY"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="190dp"
android:layout_marginTop="-14dp">
<ImageView
android:id="@+id/model"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/model_bg"
android:adjustViewBounds="true"
android:scaleType="fitXY"
/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</RelativeLayout>
C'est la partie vide car il reste encore une certaine hauteur d'écran après 3x190 et pourquoi utilisez-vous des marges négatives ...? –
Ce que je peux comprendre de votre question, c'est que vous avez ces trois photos et que vous voulez qu'elles occupent tout votre écran sans laisser d'espace. c'est ce que tu veux? –
Oui, c'est ce que je veux exactement –