在 android 中找不到 Layout_gravity [关闭]

问题描述 投票:0回答:0
type here

<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/ly_content"/>

    <ListView
        android:layout_width="150dp"
        android:layout_height="match_parent"
        android:id="@+id/listview"
        android:background="@color/purple_200"
        android:choiceMode="singleChoice"
        android:divider="#ffffff"
        android:dividerHeight="1dp"
        android:layout_garvity = "start"
        />



</androidx.drawerlayout.widget.DrawerLayout>


这个是错误: Android 资源链接失败 com.example.secondproject.app-mergeDebugResources-33:/layout/activity_main.xml:20: 错误:找不到属性 android:layout_garvity。 错误:链接文件资源失败。

在侧面滑菜单中,我想设置ListView中的Layout_gravity属性,但是,写的时候没有提示,结果报错,我应该如何设置Layout_gravity属性

android
© www.soinside.com 2019 - 2024. All rights reserved.