I want to implement a grid view with show more option. I have 16 pre-defined categories. I want to show only first row of grid view with more option at the end. User can see all 16 items by clicking more button like drop down menu.
I'm trying to find some library but noting work for me.
Any help would be great.
We suggest, please use the staggered grid with recycler view which is same like grid view also some extra benefits like, In this, you are using recycler view so its good another one you can span how you want also you can enlarge how you want, Bellow is some link which helps you.
No good example about RecyclerView and StaggeredGridLayoutManager in Android Docs
https://abhiandroid.com/materialdesign/recyclerview-as-staggered-grid-example.html
https://android--code.blogspot.com/2015/12/android-recyclerview.html
Related
I am new to android development, i am now developing an application in which i need to have a recycler view its scroll should be disabled. i have implemented the gesture listener when i swipe up and down i need to scroll the recler view images one by one (only one at a time)
Please guide me how to do this if not in recycler view if i have some other options to perform this please suggest me i just need to scroll list of images one bye one only one at a time
If the question is not clear please let me know
Thank you
Hello I am not sure if this would be a duplicate as my wording is probably not the best to describe this on a search. I have a recycler view with a list of strings. Everything works great however, is there a way to make the list scroll a little higher than the bottom of the parent view, in this case keep scrolling up until it hits the middle of the screen? the Recycler view would height is match parent. Thank you in advance!!
Please note: I didnt add code since this is just a regular recycler view nothing special added, let me know if the code is needed as well thank you!
Edit:
this is for a vertical scroll list only. The following images are some list images I got offline but hopefully they can show better what I am trying to accomplish:
I want to be able to scroll the list up to the middle as in the following picture for example:
I am trying to make a horizontal scroll just like the one showed image below, I have a horizontal scroll view here but how is it focusing on a single item in list when I scroll(I am asking about the sort of forward effect of middle one)
Thanks!
Her's the link which may help you https://github.com/blessenm/AndroidAutoScrollListView
I want to implement the below image in android ,
I have used Relative Layout to display content and Recycler view to display comments but I want both under one scroll while my problem is recycler view is creating another scroll.
I also thought to add a layout dynamically but in that every layout I have to implement click listener for every child , which is not good for performance
What could be the best way to implement it
You can make a ListView where row contains Comments part and add Image as a Header of that ListView.
The other way is to create a Custom Adapter and include Image and Comments as a single row of a ListView
For implementing a click event on each item you can refer to this answer
Why don't you use a ListView with custom elements in it (that look like the comments on the picture) instead of the RecyclerView
How can I add Grid View to the ListView.I could able to Implement but the problem is Grid View is not Visible its full height. I want to implement just like the Dropbox Photo CustomView which I have attached below. Please guide me in correct Path.
Thanks,
Chaitanya
Using github.com/TonicArtos/StickyGridHeaders library for placing headers in gridview and refer this article http://www.programering.com/a/MjN0ITMwATU.html where is the demo as what are u expecting.
The thing is that you are not supposed to add a scrollable view into another scrollable view. Both ListView and GridView are scrollable, so that just leads to trouble. I suspect that the Dropbox app does not use a GridView, but multiple LinearLayouts, that's at least what I would do. You just can not use an adapter in that case, but need to add the layouts and elements programmatically.