Using HorizontalViewPager1 instead of Canvas and Imagespirite

Yes.

See this example for ensuring that your pages list is always the latest and saved to the tinydb:

Also save to the tinydb a list of the three pages currently in view, then use this list to populate the three pages loaded on Screen.Initialise.

Hello Tim,

Thank you very much Tim for your help and support.

It really a great job.

Is it possible to start swipping the first image in the opposite side? I mean to swipe images the same way the clock moving.

Yes, you will just need to reverse all the swiping logic. I will have a look at this later.

[EDIT]

Try this:

hzpLogicRTL.aia (58.4 KB)

Page numbers increase as you swipe right

Great job Tim
It works a very nice.
Thank you very much Tim for your help.
I hope you all the best in your life

Hello Tim,

Is it possible when I click on the image it pops up a menu and when I click again it hide it?

I hope there is some extention to do that.

My preferred popup menu extension:

Ulli PopUp Menu

You may need to use several instances, one for each pager view (Vertical Arrangement)...

That is fine. I will try to learn how to add it into my HorizontalViewPager.
Thank you Tim.

Hello Tim.
I have try to save the page. but it doesn't work.
I think there is a missing thing.


hzpLogicRTL_TinyDB.aia (59.8 KB)

Your tinydb blocks do not make any sense.

What are you trying to do?

I am trying to add TinyDB in order to save the last page so when I open the app again it return the last page. For example: I was open the app and reached to page 4. So it will save page 4. And when I open it again, it go direct on page 4

You only need to save one page, the last page that was opened, e.g. page4.

Then set page4 to the first vertical arrangement when you open the app, and set the other two vertical arrangements to page5 (page 4 + 1) and page6 (page 4 + 2). You may need to download these last two pages first before displaying. The logic should then take care of progress...

I have got about halfway on this one, will need more time tomorrow.

Hello Tim,

I have done as you said excatly. Now it works a very well.
Thank you very much Tim.

Hello Tim,
I have tested in the companion it works but when I build it in apk, it shows error message.
I have try to fix the problem but I could not fix it.

I am trying to add TinyDB in order to save the last page so when I open the app again it return the last page.


hzpLogicRTL_TinyDB.aia (60.1 KB)

Try this:

hzpLogicRTLLastPage.aia (59.6 KB)

It will generate an error if you restart the app on page5.png or page6.png (because there are no pages 7, 8, or 9), and you will need to clear the tinydb tag if you do so, but the logic should be OK, if you test with pages 1-4.

Hello Tim,
I have tried the .aia it looks fine but when I go to end of page and exit then open it again it shows 0 and doesn't move

As I said, it will only work if page 1,2,3or4 are in view when you close the app

I hope there is some way to pop up a message when the user select the end page in order not let him select the end page

Try this, it will not allow any (non-existent) page to be loaded if the page number is greater than the (length of the pages list - 2). So if you go to restart with page5 visible (with only 6 pages in the list), then it will restart with page4.

hzpLogicRTLLastPageList.aia (59.9 KB)

I have tried it. When I move from left to right it works a very well. But when I am at the first page and move from right to left it pop up a message:

I cannot generate that error...