1
切換Design
和Text
標籤之間的標籤時,Android Studio會不斷更改我的約束。切換標籤時自動添加線性佈局約束
之前更改爲Design
標籤:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">....
切換到Design
和回Text
後:
<LinearLayout
android:layout_width="395dp"
android:layout_height="587dp"
android:orientation="horizontal"
tools:layout_editor_absoluteY="8dp"
tools:layout_editor_absoluteX="8dp">...
必須是一個按鈕,我很想念。我如何防止它發生?
也許你是從設計面板添加任何影響你的佈局的部件。 –
不,沒有小部件添加。新的空閒活動。只添加了帶有TextView或ImageView的線性佈局 – Idan