更新至Android Studio 2.2.1(來自穩定通道)後,Android Studio的佈局編輯器遇到問題。該編輯器是隱藏有時「約束佈局」控制從UI,上下面的屏幕截圖所示:使用約束佈局的Android Studio 2.2.1中的佈局編輯器的問題
我使用約束佈局阿爾法9和數據綁定因此佈局被包裹在「佈局」標籤。下面是示例佈局的代碼:
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<data>
<variable
name="viewModel"
type="my.package.name.DashboardViewModel"/>
</data>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.constraint.ConstraintLayout>
</layout>
當我從佈局添加/刪除元素時,控件正在消失並顯示。這是新的Android Studio或約束佈局中的錯誤嗎?或者我做錯了什麼?