抽屉布局无法预览。怎么了?

时间:2015-06-20 01:41:25

标签: android

我浏览了所有问题,并且尝试了我能找到的所有内容。我试过了

  • 将v4,v7,v13的依赖项添加到我的graddle
  • 将v4和v13 jar复制到我的libs文件夹
  • 尝试切换已编译的skd版本,min sdk版本和目标sdk版本

我根本无法让这个抽屉布局预览。安装在设备和模拟器上时,该应用程序正常工作。我在调整布局时非常沮丧,不得不一直启动到设备来检查布局的外观。谁能想出这个呢?

enter image description here

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

1 个答案:

答案 0 :(得分:0)

将minSdkVersion设置为14,将其更改为17(在build.gradle中),它将正确呈现