8000 GitHub - cubebbox/StickyView: Suspended rolling interface and can be customized various rolling animation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cubebbox/StickyView

Repository files navigation

StickyScrollView

Suspended rolling interface and can be customized various rolling animation

the stickyScrollView can Free sliding and customize all insert and exit the animation

Example

GIF a

without header

GIF b

Declare an StickyView inside your XML layout file. You also need to other layouts for contentLayout and floatLayout:

<com.cubebox.library.StickyView
    android:id="@+id/act_roll_view_stickyView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_centerInParent="true"
    android:background="@color/transparent"
    app:contentLayout="@layout/roll_content_view"
    app:floatLayout="@layout/float_view"
    app:releaseTouch="true"
    app:startHeight="200dp"
    app:stickyBackground="@color/white" />

Customization

You can change contentLayout and floatLayout of the view app:startHeight ------the height in scrollView init app:releaseTouch ------Whether to release touch events app:stickyBackground ------When the view is suspended, the underlying background color

Troubleshooting

If you want to use the StickyScrollView with EditText, you have to set android:windowSoftInputMode="adjustPan" to prevent the parent view to redraw itself .

About

Suspended rolling interface and can be customized various rolling animation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0