Coder Social home page Coder Social logo

nerecyclerview's Introduction

NeRecyclerView 带有悬浮条的RecyclerView + 自定义CircleImageView + 自定义Behavior

用CoordinateLayout + RecyclerView实现的带有悬浮条效果的demo, 并且用到了自定义CircleImageView

悬浮条思路:

帧布局包裹RecyclerView和RecyclerView的Title布局(悬浮条),滚动时监听下一个Item的title布局到顶部的位置, 从而设置悬浮条的向上滚动和悬浮静止以及其数据的更新。

自定义Behavior

实现FloatingActionBar的上滑缩放隐藏和下拉缩放显示以及点击回到顶部功能
tips:
Behavior是Android Support Design库里面新增的布局概念,主要的作用是用来协调CoordinatorLayout 里面直接Child Views之间交互行为的.特别要注意的点是Behavior只能作用于CoordinatorLayout的直接Child View.
参考:Android CoordinatorLayout Behavior

示例效果如下图所示:

image

nerecyclerview's People

Contributors

tianyalu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.