Image view vertical paging android - android

I am new for android developer. I need to build image view to my apps . Here is the library that i used.
https://github.com/chrisbanes/PhotoView
Everything is working good. Here is my question is it possible make it to vertical paging? Instead of swipe left or right to pagging. Please guide me some example also.
Thanks

I'm guessing that the parent to the PhotoView library is a ViewPager, which is, as you say, horizontally aligned. There's not native VerticalViewPager, but there are examples of customized solutions that devs have come up with for this. Here's and example of one build from a ScrollView. As a simpler first step you could even try swapping over to the native ScrollView as your parent view and then customize from there.

Related

how to auto scroll, scroll in view pager with circular dots

I am working on this issue for over 10 hours and its pushing me hard,
I need a library, which has circular dots, auto scroll, infinite scroll and I will provide title of the picture below it, I checked all the libraries provided so far and they did not help me, is there a library you guys use so far ? thank you
for circular indicators you can make use of this library :
https://github.com/ongakuer/CircleIndicator
and for autoscrollview you can use this library :
https://github.com/Trinea/android-auto-scroll-view-pager
I am using these two in my projects. make use of the github samples. it will help you for implementation details
Instead of finding libraries for this, implement the code that I am attaching below. Your dots view, auto scroll and infinite scroll will work with it. For the name of the image you can add code in the onPageChangeListener method to show the name of the image
View Pager Example for You
Hope your issue is resolved using this example that I made for you

Android change layout by sliding left/right

I tried many times to create a layout that contain multiple layouts and switch between these layouts by sliding left or right like on WhatsApp or Facebook apps.
I have used some LinearLayout, TableLayout and ScrollView but I didn't found the way to achieve it.
Do you have any solution please ?
What do you want to do is a Material Design Sliding Tabs ? I implemented that functionality in my app following this guide
You probably want to use Androids ViewPager and set up your views as fragments, it has built in swipe gestures to transition through pages so should cover what you need.
Check out this example, it's also got a sample app you can download and test out:
http://developer.android.com/training/animation/screen-slide.html

Android ViewPager non-title page indicator

I'm using a ViewPager to host multiple views, and I want something to visually show where the user is currently located. I don't want to use PagerTitleStrip or PagerTabStrip cause I don't want titles.
I want something similar to the horizontal line in the default launcher of the Nexus 4 shown in here:
When you swipe left or right, there is a slightly bigger rectangle that shows your position relative to the pages.
How can I do this?
PS: I can't use any library cause the code is going to be written in C# with Xamarin, also can't use any Xamarin component cause license won't let it have any more components.
Use the ViewPagerIndicator Library. This has an option for your desire.
ADDITION
I found this official Xamarin ViewPagerIndicator Library. Maybe this would help.

How to create an Google Currents like layout

Does anybody know how the article layout in the Google Currents Android app is built? I'd like to use some very similar layout for my app.
Example:
The first thing which came to my mind was to build up an the layout with a WebView with multicolumn stlye (http://www.w3.org/TR/css3-multicol/). Am I on the right way or is my suspicion completely wrong.
How do I get the page flip through the swipe/fling gesture and how to get the corresponding page indicator at the bottom?
Thanks in advance! :-)
You must use native views android and not webView because it is not efficient. But if you begun on Android you can actually use a webView is a good learning.
However, if you're interreses the layout android http://developer.android.com/ the website is a very good teaching technique. And what is the view of pourfaire text scroll from right to left, I encourage you to use the library ViewPagerIndicator.
I hope I have helped you!

Android - Pull-down Refresh Feature on LinearLayout

I wanted to ask can I implement pull-down refresh option on a linear layout control, I have read this & other examples also but they all are for "ListView" control.
#MH
Have a look at Chris Banes' pull-to-refresh implementation, which is available for several views, including ListView, GridView, ScrollView and WebView. You might be able to simple use the ScrollView version and wrap that around your LinearLayout. Alternatively it should be relatively easy to implement your own using the building blocks in that library.
This Worked for me.

Categories

Resources