I am writing an application where I need to scroll in both (left and right direction) infinitely.
I checked with following link and it work great but only in right side.
Is there any way to achieve left side scrolling as well.
Any suggestion here?
You can have a look at this project, I used it and it worked quite good, but in my case I had to do some other work to make things working in a correct way.
Related
I want to make a tab host in such a way that if I swipe left inside the tab host, a new tab will appear from the right and pushes the rest towards the left. I want the new tab that would appear will be able to position itself properly. I want smooth transition effect in swiping, so can anyone give me idea on how to achieve this effect? any sample codes? or any useful links containing tutorials? I googled this up and sadly no result showing what I want.
One way that I could think of is applying a scroll view there that could only be scrolled horizontally. But one problem I am worrying is the automatic positioning of the item. How can I achieve that?
Please help. Many Thanks!
it seems that you are looking for ViewPager and PagTabStrip Example.
google out on both topic and you will definitely find your ans.
I am working on an app in which i want to swipe image horizontally and while making swiping to half it would do some action and it would regain its original position. this is to be done in both ways left and right swipe.for an example gmail app uses this, in which when we swipe it half and left it, it will regain its same position. but in similar terms i also want to make some function call. please suggest me what to do.
for this i have tried something swipe features but i am not getting it properly.
If I got ur question correct, this is the solution
http://developer.android.com/training/implementing-navigation/lateral.html#horizontal-paging
Challenge:
Hi everybody. I need to make a vertical viewPager with a flip effect on pages change.
I'm developing with v19. I've tried several implementations but almost none has worked for me. Only with android-directionalviewpager-1.2.1fixed.jar achieve vertical viewpager it work, but when setting my pageTransformer gave an error. The others did not show the content. I have spent a lot of time implementing a solution but I have not succeeded.
Anyone can help me on how to accomplish my task?.
Excuse my English.
Thanks in advance.
You could simply copy the source code of ViewPager. Wherever you see it doing something horizontally, change it to do that same thing vertically. Look for things with the letter X or Y, e.g. getScrollX() or getScrollY(). It will probably take some time and you'll miss a few the first pass, but it's certainly possible (I've done it for one project).
Here's the source: https://android.googlesource.com/platform/frameworks/support/+/master/v4/java/android/support/v4/view/ViewPager.java
While going through a IOS app in my company, I saw the buttons set in a horizontal scroll view in a animated manner which looked really good. When asked the IOS developers they said it is a pre built in function available in xcode. I want to know whether it can be achieved in Android.
Details regarding the scroll view.
There are buttons when scrolled over revolves around. To be more precise it moves in the anti-clockwise direction but doesn't disappear from view.
Thanks in advance for the help.
May be this is what you want or it may help you
http://www.codeproject.com/KB/android/androcarousel.aspx
If my understanding is correct about your question, We have HorizontalScrollView to achieve that in android. You have to do your own animation while scroll. There is no in build animations while scrolling.
Please go through the following link.
Good Evening,
i am having a problem with android 4.1 when it comes to scrolling and swiping. (I am using jquery mobile)
I have a list which you can delete items from by simply swiping to the right. When it comes to iOS, everything is really crisp. But it seems that android cant handle scrolling and swiping on the same element. You can only scroll in a 90° angle, but changing it to ~85° messes up the scrolling.
When i remove the swiping event, everything works fine. Is there a known fix for that?
Regards Dominik
$.event.special.swipe.scrollSupressionThreshold is the answer to that problem.
JqueryMobiel supresses scrolling when there is a swipe event on an item. Simply modify the values above to your liking and you'll be fine!
$.event.special.swipe.scrollSupressionThreshold = "30px";
30px is not the right parameter, it is 30 (without px), but 30px solves my problem.