Is there a way to implement List View in Android, with a horizontal scroll? I've come across this library: https://github.com/MeetMe/Android-HorizontalListView . I'm wondering if there's a native way of doing it. I want to implement something similar to Amazon's android app's horizontal Scroll view on Home screen. Any suggestions?
I think that you are looking for this , let me know if it helps.
Yes, now in new versions of Android(Lollipop) you can implement horizontal listviews using new RecyclerView library.
This can help you.
Related
I'm just curious.
Is it possible to combine an ExpandableListView with a Swipe-function in Android? To explain what I mean, imagine this scenario:
You touch an item in the list, a view is expanded. In this View you are able to swipe to left/right in order to view a new View without changing the background.
Comment if you don't understand, please!
Thanks in advance!
I am not sure about the version of Android you are using, but if you can use the AppCompat library v22, you can actually use a CoordinatorLayout and do an expansion of the view onTouch. Afterwards, in one of your child layouts, you can set the SwipeDismissBehavioron the expanded view (which should be a child of your CoordinatorLayout). This is one of the coolest new functionalities in Android. You should read more about it here.
http://developer.android.com/reference/android/support/design/widget/SwipeDismissBehavior.html
You can use https://github.com/tycallen/SwipeMenu-Expandable-ListView for Swipable ExpandableListView.
I am new to android, I have arranged five LinearLayouts in a horizontal way, if I click the first first LinearLayout it will expand and the other layouts remain in the same position, please help me.
This is the layout design :
As the way you stated, I suggest you to use ExpandableListView
You can see for tutorial HERE
Since you're new, you're gonna have to learn anyway. Since the functionality you're looking for can be easily implemented using a Horizontal ListView, I suggest you try this approach rather than using five LinearLayouts. ListViews have extensive controls. I recommend this implementation from experience : HorizontalVariableListView. Hope this helps!
I saw this libs, but I want to get horizontal scroll view. How can i do this or someone know more usefull solution or github project?
Any help will be appreciated.
There is an android widget called HorizontalScrollView you can find it here
Android HorizontalScrollView
and there is an example on how to use it here
Example on HorizontalScrollView
Take a look on this library
https://github.com/oasis2008/PinterestListView
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 use Android GalleryView to implement a view that can scroll horizontally as well as vertically, similar to the Google Music application. However, if I place a ListView inside a GalleryView, the ListView seems to steal all touch events and I'm unable to scroll horizontally on a GalleryView. What am I doing wrong? Is this the best approach? Does anyone have any other suggestions? Thanks!
Do not use a GalleryView for paging views. Furthermore, having a ListView inside a GalleryView is never recommended.
Instead use the ViewPager that's available as part of the Android Compatibility Package. I think that's more relevant to what you're trying to achieve. Here's a detailed article on ViewPager:
http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html