1
La hauteur de vue de navigation que j'ai définie à match_parent mais elle ne correspond pas du tout au parent Ci-dessous le code xml:Hauteur de vue de navigation J'ai mis à match_parent mais il ne correspond pas du tout au parent
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/content">
</FrameLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/moveimage"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/ic_launcher"/>
</RelativeLayout>
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
android:background="#fff"
app:headerLayout="@layout/nav_header" />
</android.support.v4.widget.DrawerLayout>
pour la hauteur du navigationView, comment dois-je faire pour adapter à l'écran toute
la capture d'écran est au-dessous:
disposition relative n'a pas l'attribut d'orientation – Confuse
@Yasharyan Quelle est l'attribut d'orientation Alors que dois-je changer? –
Vous avez 2 mises en page relatives. Le premier a la ligne 'android: orientation =" vertical "'. Retirez-le. Notez bien que cela corrige quelque chose, mais c'est une pratique incorrecte. – Confuse