1
CollapsingToolbarLayout에서 CollapsingToolbarLayout을 사용합니다. 툴바와 xA 및 Y 포인트를 그리는 데 MPAndroid 차트를 사용하는 차트가 있습니다. 어쨌든 문제는 툴바가CollapsingToolbarLayout 차트가 툴바 뒤에 있습니다
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent"
android:layout_height="300dp">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsingToolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="true"
android:foregroundGravity="bottom|right"
android:foregroundTintMode="add"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/ColorPrimary"
android:elevation="5dp"
app:layout_collapseMode="pin"
app:theme="@style/Toolbar">
</android.support.v7.widget.Toolbar>
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/graph"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/toolbar"
android:background="@color/white"
app:layout_collapseMode="parallax">
</com.github.mikephil.charting.charts.LineChart>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<include layout="@layout/nested_scroll_view" />