В настоящее время застрял на макете.Хотите, я хотел бы, чтобы отобразить макет с редактированием текстов под collaspingToolbar.То, что у меня есть ... Ну, не то: D
Перепробовал много десятков, но я продолжаю терпеть неудачу в этом.(первое реальное упражнение по разработке для Android, не совсем привыкшее к этой раскладке)
Любая помощь будет потрясающей.
<android.support.design.widget.CoordinatorLayout 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"
android:fitsSystemWindows="true"
tools:context=".Activities.AddCustomerActivity"
tools:ignore="MergeRootFrame">
<android.support.design.widget.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="@dimen/app_bar_height"
android:fitsSystemWindows="true"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/toolbar_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
app:toolbarId="@+id/toolbar">
<android.support.v7.widget.Toolbar
android:id="@+id/detail_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/add_customer_lastname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8sp"
android:layout_marginStart="8sp"
android:hint="Last name"
app:layout_constraintTop_toBottomOf="@id/toolbar_layout"
tools:ignore="NotSibling" />
<EditText
android:id="@+id/add_customer_firstname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8sp"
android:layout_marginStart="8sp"
android:hint="First name"
app:layout_constraintTop_toBottomOf="@id/add_customer_lastname" />
<EditText
android:id="@+id/add_customer_address"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8sp"
android:layout_marginStart="8sp"
android:hint="Address"
app:layout_constraintTop_toBottomOf="@id/add_customer_firstname" />
<EditText
android:id="@+id/add_customer_postcode"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8sp"
android:layout_marginStart="8sp"
android:hint="Post code"
app:layout_constraintTop_toBottomOf="@id/add_customer_address" />
<EditText
android:id="@+id/add_customer_city"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8sp"
android:layout_marginStart="8sp"
android:hint="City"
app:layout_constraintTop_toBottomOf="@id/add_customer_postcode" />
<EditText
android:id="@+id/add_customer_phone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8sp"
android:layout_marginStart="8sp"
android:hint="Phone number"
app:layout_constraintTop_toBottomOf="@id/add_customer_city" />
<EditText
android:id="@+id/add_customer_mail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8sp"
android:layout_marginStart="8sp"
android:hint="E-mail"
app:layout_constraintTop_toBottomOf="@id/add_customer_phone" />
<EditText
android:id="@+id/add_customer_license"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8sp"
android:layout_marginStart="8sp"
android:hint="License number"
app:layout_constraintTop_toBottomOf="@id/add_customer_mail" />
</android.support.constraint.ConstraintLayout>
</android.support.design.widget.CoordinatorLayout>
Вот какой у меня сейчас результат: