Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Currently in the app I'm working on as an ongoing project we have a limit of 100 comments per item.
Items can be stuff like forums, journals, and many more stuff. Some of these items are pretty custom and are added to a ScrollView instead of a generic Listview.
Now one client wants to be able to see even more comments since he needs to keep reading for his research.
What would be a good or even a better option could someone advise? What I"m thinking off now are the following.
At the end of our limit, add an "Show all comments" button which loads a simplified listView containing all the comments.
This way avatars will be easely hidden when not visible etc.
Pagination, load the next hundred by using pagination.
You should use a ListView in the first place because the views will get recycled and will not consume all the memory like the scrollView is doing
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to add the progress wave like the above gif image. I've seen this kind of progress wave recently in many apps. I also searched for the 3rd party library but couldn't find one. Maybe there is one, but I'm not searching with correct keywords.
For Loading list place holders, you can use Shimmering Animations. I am listing out some of the cool Third parties libraries which you can use.
https://github.com/facebook/shimmer-android
https://github.com/team-supercharge/ShimmerLayout
Here is one of the best tutorial link
https://www.androidhive.info/2018/01/android-content-placeholder-animation-like-facebook-using-shimmer/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new at Android development and I need to implement a recycler view that can expand but when I searched on google, I get nothing. There are two or three libraries which are present on github for this purpose but neither of which I understand. So, after two days of searching on expandable recycler view, output is null. ANy help will be greatly appreciated.
I think you might Looking for this.
Follow below Link.
https://github.com/mrzulkarnine/RecyclerView-With-Expandable-Item-Demo
Do Modification as you required in your Recycler View items.
EDIT 1
Follow this link.
https://github.com/bignerdranch/expandable-recycler-view
Hope it will gives what you want.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I want to create big forms in an Android applications, with a lot of questions and inputs, what is the best way to do that ? Did I need to user Scroll View, List View ? If it's a List View what kind of adapter is the best ?
Generally, it is not a good idea to present a huge form on a single page on a mobile device. Users don't like to scroll pages after pages of views to fill forms. It can be disorienting and hard to navigate. On smaller devices, things will be even worse.
Consider breaking a big form down by functional areas and present a smaller UI instead. This will make it easier for the user. You could organize your form in a view pager where you can have several pages.
My experience with ListView (this may apply to RecyclerView too) is that adding an edit field to a row has some challenges in terms of handling focus, touch events etc. The listView does not handle it very smoothly. So it is possible to use these but it can be tricky. Unless there are lots of similar rows, listView does not give you much. Doing a ScrollView or a TableLayout will be fine.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to display an article with paragraphs, images, quotes, etc. My backend currently returns an article as a list of paragraphs, images, etc. but this can be changed if needed.
I tried the following :
Using a WebView and loading the whole article. Works fine but WebViews are very consuming and I can't customize content appearance as I would like to.
Using a ScrollView and populating it with TextViews for each paragraph and ImageViews for each image. Works OK but is very laggy at the beginning while populating the ScrollView
Using a ListView (and later a RecyclerView) to benefit from recycling. The problem with this solution is that some items may be quite long (ie : a long paragraphe) and it can be laggy when a long item appears on screen while scrolling.
None of the solutions above seems to be optimal, so I wonder : what's the best way to display an article?
Thanks for your answers
Edit 2:
All the solutions above work, my question is not about how to make it work but about how to make it as optimized and smooth as possible.
Edit: This is the kind of things I'm trying to display.
RecyclerView is the best practice. It has the best optimization.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I would like create an application with a list of podcast with an UI like Google Music, but I do not know how to place items horizontally beside the other podcasts rather than below.
I use a listView and a cardView.
Well, GridView or a RecyclerView with a GridLayoutManager can do the trick.