I need to make a ListView using the Lib TwoWayView have the same behavior that occurs in Sappos App, where after
applying scroll the List, an animation centers the item with the highest percentage visible.
Edited
For the example below I costumizei an example on github: Vertical Horizontal ListView having a ListView
If anyone has suggestion, have already done something, appreciate any help!
the support is functionality was added
https://github.com/lucasr/twoway-view/issues/53
I've just fixed an issue in the scrollBy(int) method that was apply
the delta in the wrong direction (see 2fd1ea7). It should be working
fine now. I've have also landed
smoothScrollBy/smoothScrollToPosition() support in #20.
Related
Hey Every one I am working on a project that requires ListView/RecyclerView items animation in a very unique. Here is the sample app RetailMeNot. The ListView or RecyclerView used in this app is definitely custom and looks pretty cool. Initially, the list show smaller image of a child-item. As the user scrolls up, the child item expands fully to reveal a bigger image and previously expand item collapse/hide and put the next item on top.
Has anyone seen a library or implementation of a similar ListView/RecyclerView?
I really tried hard to make this effect on ListView and RecyclerView but couldn't achieve the required result.....
Any help would be really appreciated, Thanks in Advance!!!
After doing so much search and trying so many example's I finally created the effect with this library. This library has the same expand/collapse effect as RetailMeNot. Just download the library and use it in your project.
Happy Coding!!!
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
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
Is there example android code or sample android app which demonstrate animation of the views while scrolling.
For example. In a scroll view some items are not visible when you scroll the items will start to come inside the screen that time i just want to animate that view.
any help would be greatly appreciated.
Thanks.
Download this app. Here you will find tons of libraries of your use. I also seen the library which your are asking in this app. You will find source code links in the app as well.
https://play.google.com/store/apps/details?id=com.desarrollodroide.repos&hl=en
Or You can do one more thing
Just add on scroll listener and some more listeners are there by which you can detect which portion of your scroll view is visible.
Then You can add animation to those views.
Try Listview animation library.
Modify it and use.
https://github.com/nhaarman/ListViewAnimations
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