dynamic - On viewPager in Android is there way show large number of fragments? -


i have viewpager using fragmentpageadapter page count 3.

in application have list of numbers. suppose numbers 99, 33, 44, 12, 7, 55, 77, 88, 45

i populate 3 numbers onto 3 fragments, 12, 7, 55. @ present, @ app start, number 12 shows up. user swipes right , 7 shows , 55.

is there way on further swipe right fragment appears showing next number 77, , if user swipes left goes 55, 7, 12. if user swipes left again, starts seeing next fragment 44, 33, etc.

in way manage data window 3 numbers. fragments should appear if animated left or right when not there.

is possible in android?

also, please note more data dynamically generated, not have count on overall number display.


let me make question bit clearer.

initial list has 12, 7, 55. these shown in viewpager. if 12 showing up, , user swipes right, gets see 7, , 55 (ok far). now, if user swipes right 1 more time, app gets more data (77, 88, 45) , shows up. if now, user swipes left, sees 77, 55, 7, 12. beyond 12, if swipes left again, app gets more data on left (99, 33, 44) , user can swipe left. while pager can maintain 3 fragments (fragmentstatepageradapter). can pager add fragments on left/right way have described?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -