如您所愿,工具欄未在“設計”部分正確顯示。它的大小是不可改變的。為它設置的屬性不會顯示在設計字段中。屬性,例如background,color和...xml代碼:<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar2" android:layout_width="368dp" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:minHeight="?attr/actionBarSize" android:theme="?attr/actionBarTheme" tools:layout_editor_absoluteX="8dp" tools:layout_editor_absoluteY="49dp" /></android.support.constraint.ConstraintLayout>
添加回答
舉報
0/150
提交
取消