Androidサポートライブラリのバージョンが25.4.0から26.0.0(最大27.0.0)に更新されて以来、アクティビティ内の折りたたみツールバーで奇妙な動作が発生しています。折りたたみツールバーサポートlib 26.0.0以降のバグglitch
は、これらのGIFを上の違いを参照してください:
上にスクロールするときは、ツールバーの崩壊の奇妙なバウンスが表示されます。同じ問題が発生して
<?xml version="1.0" encoding="utf-8"?>
<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/appBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white_opacity10"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsing"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
app:scrimAnimationDuration="@integer/scrim_animation_short"
app:titleEnabled="false">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:layout_collapseMode="parallax">
<!-- Here is layout of header -->
</FrameLayout>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_gravity="top"
android:layout_marginBottom="?attr/actionBarSize"
app:layout_collapseMode="pin"/>
<android.support.design.widget.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_gravity="bottom"
app:tabGravity="center"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/white"
app:tabTextColor="@color/white_inactive"/>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<FrameLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.v4.view.ViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
</android.support.design.widget.CoordinatorLayout>
誰:
は怒鳴るレイアウトのコードスニペットを参照してください?このサポートはlibバグですか、何か間違っていますか?
EDIT:あなたは画面を投げつけるとき
- グリッチがtestingyouのドラッグ
- は、次のプロジェクト引っ張ることができないときだけ起こる:https://github.com/aaronbond/CollapsingToolbarLayoutExampleとencrease支持体26へのlibsとを高い
あなたは何が起こっているかのGIF /動画を投稿することができますか? – damian
これは問題です:https://imgur.com/Wz1yF1o - 25.4.0、https://imgur.com/a/ynVGS - 26.0.0 –