How can i achieve something like a vertical ViewPager in Android? - android

It may not be a great question but i am asking for some help.
I am not a pro so please if anything is unclear post a comment and i will try to explain.
I have an activity where i have a full screen ImageView where over it i have a couple of texts and an other overlayed imageview, i want when i swipe up to send the whole view upwards and to show from below a simillar view but with different image,
i don't need to detect swipe gesture, i need the view to track my finger's Y (vertical value) , and as i have my images into an array , how can i create the same view for each image ? I am not using adapter and as i know adapters works only with gridview and listviews, please if someone knows help me !

Try to use RecyclerView I think it can do what you want

Related

Scrollable List of Images in Images

I want to make a scrollable list of images on other images. Just like this concept:
My "problems" are that I do not really do much with layouts and that I have to change the images programmatically.
I would just write a class which would handle the scrolling animation and change the position of every image when Action_Move is called, but I am completly sure that there is a better option which is the reason that I ask you now. I hope you can help me. :)

Runtime manipulation of ListView

developers.
I would like to ask for help for a task. Unfortunately, I can not upload any code because I do not know how to get started.
I would need to create a listview where I can check the views of all its appearing elements while scrolling and ask to change the view while scrolling.
Specifically: The list item displayed in the center of the screen should be larger than the others, and as I scroll the list up or down, the letters become smaller.
It would look like a scroll on a cylinder.
I would like to ask for help on this problem.
Thank you very much!
Please check out this Github Page : CarouselLayoutManager
Its got instructions and examples..

Recycler View Scroll to middle of screen

Hello I am not sure if this would be a duplicate as my wording is probably not the best to describe this on a search. I have a recycler view with a list of strings. Everything works great however, is there a way to make the list scroll a little higher than the bottom of the parent view, in this case keep scrolling up until it hits the middle of the screen? the Recycler view would height is match parent. Thank you in advance!!
Please note: I didnt add code since this is just a regular recycler view nothing special added, let me know if the code is needed as well thank you!
Edit:
this is for a vertical scroll list only. The following images are some list images I got offline but hopefully they can show better what I am trying to accomplish:
I want to be able to scroll the list up to the middle as in the following picture for example:

Horizontal swipe between two separated layouts

I need to swipe between my two almost identic but separated layouts. Like just swipe screen by fingertip and the picture will change and some text will change too... thats all. :) But, isn't there a problem, when I'm using RelativeLayout at both of them?
Spartacus Hello
Bro use pager view for horizontal swipe, here is a simple exapmle of pager view:-
Check it out:-
If you found any issue regarding this please let me know i love to help you,
Spartacus Thanks:- :)

Android: I want to swipe between cells of a grid where only one cell is visible at a time

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)

Categories

Resources