0

私は2日からこれに取り組んでいますが、まだこれを修正する方法がわかりません.CoordinatorLayoutではFloatingActionButtonのみが適切に固定されていますが、 「ビュー」レイアウトにアンカーを適用したい.ツールバー...助けてください..よろしくお願いします

ここに画像の説明を入力

ここにレイアウトがあります

<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="com.rvsoftcorp.zetaride.MainActivity">
   <android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/AppTheme.AppBarOverlay"
    android:id="@+id/app_bar">
           <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="170dp"
            android:background="?attr/colorPrimaryDark"
            app:popupTheme="@style/AppTheme.PopupOverlay"
            android:alpha="0.9"></android.support.v7.widget.Toolbar>
  </android.support.design.widget.AppBarLayout>
  <View
    android:id="@+id/ntb_sample_5"
    android:layout_width="100dp"
    android:layout_height="50dp"
    android:layout_margin="@dimen/fab_margin"
    app:layout_anchor="@id/toolbar"
    app:layout_anchorGravity="bottom|end"/

4

1 に答える 1