【发布时间】:2015-01-09 10:39:23
【问题描述】:
我正在 android studio 上创建 XML 抽屉布局文件,但无法在 android studio 上预览我收到此错误我该如何解决问题
<android.support.v4.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:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ListView android:id="@+id/left_drawer"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp"
android:background="#fff"/>
我收到此错误:
渲染问题找不到以下类:android.support.v4.widget.Drawer Layout (Fix Build Path, Create Class) 提示:尝试构建项目。
【问题讨论】:
标签: android xml android-activity android-fragments