Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;索引:0,大小:0视图绘制错误“;Android Studio设计选项卡错误_Android_Android Studio_Android Layout - Fatal编程技术网

&引用;索引:0,大小:0视图绘制错误“;Android Studio设计选项卡错误

&引用;索引:0,大小:0视图绘制错误“;Android Studio设计选项卡错误,android,android-studio,android-layout,Android,Android Studio,Android Layout,我最近将AS更新为4.0版本。之后,我在布局中放置了一个EditText和一个TextView,如下所示: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent&

我最近将AS更新为4.0版本。之后,我在布局中放置了一个EditText和一个TextView,如下所示:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <TextView
        android:text="EditText should be below me!"
        android:textSize="20dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="I'm a hint"/>

</LinearLayout>

我可以看到编辑文本

我会感谢你们给我的任何帮助,伙计们。提前谢谢

更新

可以通过打开AS设置中的“使用新布局渲染引擎”来修复此问题


不管怎样,我希望我们能找到这个问题并解决它,伙计们。谢谢你的关注

看起来不错,你能关闭、清理构建文件夹并在其他设备上运行应用程序吗/emulator@notTdar谢谢你这么快的回复!这真的很奇怪,但一旦我把它清理干净,它就开始工作了。。。谢谢我不会删除这个问题,也许它对某人有帮助。@notTdar oops!我通过在AS…的实验设置中启用新的布局渲染引擎来修复它。。。。把答案放在这里奇怪的是解决了你的问题通常不会发生
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
@style/Widget.AppCompat.Button.ButtonBar.AlertDialog
@style/Widget.AppCompat.Button.Borderless