Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.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
Android 切换选项卡时自动添加的线性布局约束_Android_Xml_Android Layout_Android Studio_Android Linearlayout - Fatal编程技术网

Android 切换选项卡时自动添加的线性布局约束

Android 切换选项卡时自动添加的线性布局约束,android,xml,android-layout,android-studio,android-linearlayout,Android,Xml,Android Layout,Android Studio,Android Linearlayout,Android Studio在Design和Text选项卡之间切换选项卡时不断更改我的约束 在更改为设计选项卡之前: <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal">.... 一定是我丢了一个按钮。如何防止它发生?这似乎是Android Studio中的一个bug 当

Android Studio在
Design
Text
选项卡之间切换选项卡时不断更改我的约束

在更改为
设计
选项卡之前:

 <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal">....

一定是我丢了一个按钮。如何防止它发生?

这似乎是Android Studio中的一个bug


当我升级到
3.0.1
时,问题似乎自行解决了。

这似乎是Android Studio中的一个bug


升级到
3.0.1
后,问题似乎自行解决了。

可能是您正在从设计面板添加影响布局的任何小部件。不,没有添加小部件。新的空活动。只有添加了TextView或ImageView的线性布局可能是您正在从设计面板添加影响布局的任何小部件。不,不添加小部件。新的空活动。仅添加了TextView或ImageView的线性布局
 <LinearLayout
    android:layout_width="395dp"
    android:layout_height="587dp"
    android:orientation="horizontal"
    tools:layout_editor_absoluteY="8dp"
    tools:layout_editor_absoluteX="8dp">...