Solemnly declare: this article from the design point of view of Android list dynamic effect design problems, including front-end technology, code nongshen spray, I am cute girl ~
I believe that designers will have a headache when designing the dynamic problems about lists, such as how lists should appear and how to end
There is also a big problem for brother Coder, that is, when I get the design draft, I get various kinds of motion effect feeling proposed by the motion effect teacher: I bought a watch last year. So how can the code brother be more efficient implementation of the design? After reading today’s article, I believe you will have extra harvest ~
First of all, I would like to thank Icon and page designer Ms. Cui Yao and code nong ge Cmychad (mentioned later in the article) ~
During the development of our company’s project, I was assigned a large number of list design and dynamic effect design projects. At the beginning, I felt helpless, but since I found an open source project by CMyChad on Github (project name: BaseRecyclerViewAdapterHelper), was over the moon, at the time of project implementation, the company’s android development through using this open source project to develop ~
Cmychad code nong Brother link on Po:
https://github.com/CymChad/BaseRecyclerViewAdapterHelper
So how is this kinetic effect shown?
You can see this in the GIF above
-
For development: Optimize Adapter code (70% less code)
-
Add click events for item clicks, hold events, and click events for item child controls
-
Add load animations (easily switch between 5 default animations in one line)
-
Add header, tail, pull-down refresh, pull-up load (feel back to ListView)
-
Set custom load more layouts (for development)
-
Add groups (define group headers as you like)
-
Customize different item types (simple configuration, no extra method overrides required)
-
Set the empty layout (better than Listview’s setEmptyView!)
From now on, UI designers only have to consider the style problem, and development is not afraid of all kinds of clever and weird motion effects ~ minute by minute kill all kinds of list motion problems ~
The following Po shows the renderings of my own project and the real machine version implemented with this open source project:
Effect:
Effect of real machine:
Many project list performance are follow code farmer brother cmychad project: BaseRecyclerViewAdapterHelper
It works really well. Today I went to Google Chrome and found that I can see it on Google Play
https://play.google.com/store/apps/details?id=com.chad.baserecyclerviewadapterhelper
(I’m so generous ~ haha ~)
Design lions, call your programmers to try it out. You’ll wonder why I didn’t use it soonerBaseRecyclerViewAdapterHelper~?
Of course, in addition to exclamations, I have an immature suggestion ~ that you may also gently like the following ~ I will be very touched!