Now i have to create a horizontal listview again, this time i want to find a better library for this, as far as i know android did not have a horizontal listview, and then i read this
http://developer.android.com/design/building-blocks/grid-lists.html
They mention if gridview can scroll horizontally, they even illustrated it with a picture. I try to find example of how to use gridview horizontally, but i have no luck,
is anyone here can help me how to use gridview scroll horizontally?
This is the best library for two way grid. I have used it and it works perfectly.
https://github.com/jess-anders/two-way-gridview
I'm end up using recyclerview as #tyczj recommend
Related
the last following days I was fighting with the mentioned GridView hack. Problem was and still is that it cuts the last row. I couldn't fix it therefore I need a new alternative.
What I want to build is scrollable 3(columns)x2-8(rows) layout with image and some textview. I put it in a ScrollView.
Maybe you could suggest some alternatives for a GridView to do that?
Well, I have actually found a solution. I have implemented GridView (assigning GridLayoutManager) in the RecycleView. Now it works as it should and no more custom GridLayout implementation!
Inspiration from here
http://blog.iamsuleiman.com/image-gallery-app-android-studio-1-4-glide/
I have a recyerview which contains in each row a picture, a title and a description.See here.
The height of an element of the recyclerview is fixed.
The problem is the description could be too long for the fixed height.
To solve it I would like to implement a vertical scrolling that could allow me to read everything in any cases.
I have no idea where I have to search to do that.
Someone has a good tutorial to follow ?
Thank you.
As far as I know, you will get scroll conflicts by doing this as the recyclerview will not know whether to scroll itself upwards or to scroll the actual text inside it's views.
A better approach is to implement an expandable textview, an easy to use library can be found here:
https://github.com/Manabu-GT/ExpandableTextView
I have multiple textviews inside a horizontalscrollview. Now I want to scroll all the textviews inside it so that all multiple textviews gets displayed. How can I achieve it ?
Thanks in advance.
Here is one git project. Its a scroller the scroll automatically and continously. It was made to show a credits screen by continously scrolling through a list of images.
This might help you or give you some idea.
https://github.com/blessenm/SlideshowDemo
I'm trying to figure out the best approach to design a horizontal scrollview from android >= 2.1 with some text over the image that when scroll if end is reached it starts showing the first items again hence carousel behavior.
You can continue scrolling horizontally, forever, and the first item shows up again when the end is reached, for example when scrolling swiping to the left. It can be a view pager with an adapter, a carousel but not horizontal scrollview as it does not support some android device.
Any suggestions would be greatly appreciated.
Why not use a ViewPager? As it is available in the Support Library. I would insist to use ViewPager instead of HorizontalScrollView or Gallery. You can check an example for ViewPager from my github.
UPDATE
To show multiple views inside a Fragment you can use getPageWidth(). Check here for reference.
For future people looking for this, here's an excellent library that fit my needs for a similar problem!
https://github.com/sparrow007/CarouselRecyclerview
I want a single cell of a grid to take up my whole screen and swipe up/down/left/right to access other cells (not smoothly, but switch to the next cell). What do you think is a good way of implementing this?
I've partially implemented this in GridView and ListView containing a HorizontalListView and am considering TableLayout.
Any advice?
I would start with the DirectionalViewPager on github and try to modify it so that it can always swipe in any direction instead of having to call setOrientation(DirectionalViewPager.VERTICAL)and setOrientation(DirectionalViewPager.HORIZONTAL) I don't know exactly how much you'll have to modify it, but it is most of the way there, I would think that the change should be relatively straight forward.
How about you take a look at this. the horizontal paging(swipe views)