henrytao-me / smooth-app-bar-layout

Smooth version of Google Support Design AppBarLayout
Apache License 2.0
1.77k stars 240 forks source link

SmoothScroll with ListView #182

Closed ayinmursalin closed 7 years ago

ayinmursalin commented 7 years ago

i don't ever try Collapsing Toolbar yet, and i need add that thing to my ListView

i have try yours but i see nothing (?)

and i don't know what means you add in above of i use this smoothappbar for include content_main, which is have

i need your guide, thanks..

ayinmursalin commented 7 years ago

and this is my code for main_activity.xml

`<?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" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:context="com.ayndev.a_time.MainActivity">

<me.henrytao.smoothappbarlayout.SmoothAppBarLayout
android:id="@+id/smooth_app_bar_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/app_bar_height">

    <android.support.design.widget.CollapsingToolbarLayout
        android:id="@+id/collapsing_toolbar_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_scrollFlags="scroll|exitUntilCollapsed">

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            style="@style/AppTheme.AppBarOverlay"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:layout_collapseMode="pin" />

    </android.support.design.widget.CollapsingToolbarLayout>

</me.henrytao.smoothappbarlayout.SmoothAppBarLayout>

<include layout="@layout/content_main" />

</android.support.design.widget.CoordinatorLayout> `

henrytao-me commented 7 years ago

Hi @ayinmursalin

SmoothAppBarLayout doesn't work with ListView