Animate Header in ListView - android

I want to add a header to my list view that will appear when I scroll up and disappear when I scroll down. This functionality is in the Facebook app. Is there any component in the ListView that I can call?

If you are comfortable using 3rd party libraries, here's a great one based on what you want.
https://github.com/LarsWerkman/QuickReturnListView
Also, I would really suggest you to take a look at Libraries for developers app. https://play.google.com/store/apps/details?id=com.desarrollodroide.repos
Very much useful for us developers! I happen to stumble upon a lot of useful libraries from this app!

Related

What are the alternatives to RecyclerView for a feed

An app includes a feed like Twitter or Instagram.
Tried it with the RecyclerView.
Would Litho (fblitho.com) be a good alternative to make a good feed with text, videos and pictures? Or maby other libraries?
I would suggest learning more about RecyclerView before trying to move onto different libraries. Even if you do end up using another library, it's always good to have a better understanding of what it's being built on top of.
RecyclerView is the best way to handle feeds like you're looking to build. Even with images, or videos.
If you have any specific questions about RecyclerView, you should ask them here. For example, why does RecyclerView not fit your current needs?
I strongly recommend you to take a look at epoxy. As it description says, it is an Android library for building complex screens in a RecyclerView. Models are automatically generated from custom views or databinding layouts via annotation processing.
Wish it can help you.

ListView with a gridView within infinite height

This is one of the implementations that I have the most difficulty in actually finding the best way to solve.
There are a lot of techniques and ways, but the last answers I found did not really seem to me to solve the problem. Another point is that they are usually very old techniques and libraries.
What I want to do is this:
How do I create this ListView with a GridView inside and the screen has infinite height without using ScrollView, so we know that it is not recommended to use ListView within ScrollView.
I am not asking you to develop the code, but rather recommend me the correct architecture that I should use to implement this (ScrollView, ListView, GridView), or memo a library that has new development concepts that can help me.
This question arises because many of the existing responses are too old and have outdated ideas.
I know the question is of a slightly higher level of complexity, but I accept everyone's help.
Thank you very much.
It is very easy to solve this using a RecyclerView.
The documentation is pretty clear and explains all the details necessary for the development of the functionality.
I will leave the necessary documentation links to implement:
RecyclerView
GridLayoutManager
ItemsViewHolder
We know that it is always better to use native components in the development, I recommend, but if you prefer to use a library ready to solve your problem, here are some interesting:
Sticky Headers
recyclerview-stickyheaders
StickyListHeaders

Draggable / Expandable RecyclerView?

What is the newest and simplest way to do this?
All I want is the ability to drag parent items around and click them to expand to show their child items, with efficient operations if you delete or add.
Is there a library that does this and is simple to use? I tried Googling but everyone keeps saying this and that is outdated or inefficient but offer no alternatives.
Or can I just make one myself somehow? Is ItemTouchHelper what I need for expanding and moving stuff around?
Or is this built in somewhere? I'm using the support library.
I spent a long time in order to find a way to implement such a list. Check out my github project:
https://github.com/XxGoliathusxX/LightWeightExpandableDragAndSwipeRecyclerView
If you have any questions: Just ask me ;) Hope I can safe you a lot of time and trouble.
You can try this library. It allows an expandable, draggable and swipeable RecyclerView with many other features.

Any idea if ExpandableListView is going to be deprecated in the near future ?

I hope my question doesn't violate the rules of StackOverFlow. I am writing an android app and want to implement a list view that is expandable. I am aware of expandableLisView and 3rd party libraries of different versions of expandable recycler view such as this or this . Although, I am trying to avoid using libraries and be as native as possible. knowing that recyclerView is more recent and potentially more efficient than listViews, I am afraid that expandableListView gets deprecated at some point in the near future and google comes up with something like that for recycler view.
Just wondering if anyone is aware of such a thing or if expandableListView would be a safe bet to go with. Thanks a lot for your input.

Android terminology

I have created a few apps with basic features with the help of tutorials. But when I decided to explore the next level of features, I didn't know what the features were termed, and hence found it difficult to get help (features like fling, horizontal view paging, and so on). What is the indicator of the view paging called? How does one do it and with dynamic pages?
Your best bet is to go here and read.
Android Dev
Also check out commonsware books on developement. This is the best way to get started.

Categories

Resources