Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap flag not works #45

Closed
mikluke opened this issue Dec 5, 2015 · 1 comment
Closed

snap flag not works #45

mikluke opened this issue Dec 5, 2015 · 1 comment

Comments

@mikluke
Copy link

mikluke commented Dec 5, 2015

snap not works. for example:

<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar"
android:layout_width="match_parent"
android:layout_height="158dp"
android:background="@drawable/main_header_background"
app:contentScrim="@color/transparent"
app:titleEnabled="false"
app:layout_scrollFlags="scroll|span|enterAlwaysCollapsed">

    <include layout="@layout/slideshow_main"
        android:layout_height="158dp"
        android:layout_width="match_parent"
        app:layout_collapseMode="parallax" />

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:background="@color/transparent"
        android:layout_width="match_parent"
        android:layout_height="56dp"
        app:layout_collapseMode="pin"/>

</android.support.design.widget.CollapsingToolbarLayout>
@henrytao-me
Copy link
Owner

Hi @mikluke,

By default, SmoothAppBarLayout is designed for snap animation. I prefer don't use original AppBarLayout snap property. The reason is that I designed SmoothAppBarLayout when SupportDesign was v22. Now, I have to review the design again with v23. However, in the mean time, you can achieve the same snap animation with some following examples Smooth Default, Smooth ExitUntilCollapsed Smooth Enter Always

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants