A
A
Alexander Sinitsyn2017-11-01 21:18:09
PHP
Alexander Sinitsyn, 2017-11-01 21:18:09

Is it possible to make the ViewPager only move forward programmatically and move back as usual?

On the first page there will be a fragment with a list, on the second a detailed fragment. The second should open when you select an item, and you can return to the list by swiping it to the right. That's just how? I tried to create a second page dynamically, but something turns out to be a lot of crutches)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Grigory Vasilkov, 2019-08-07
@gzhegow

CNC is generally the ID at the end of the entry. This ensures that the page is unique.
/articles/hello-world-1/
By this unit we find the article, and the text (slug: hello-world) of the link can be absolutely anything.
I know that you will have a question about duplicate content, such as the /hello-world-1/ link goes to the same place as /hello-foo-1/, but your link builder will always generate it on hello-world, and on the site, visible to robots will never be hello-foo
ps. "Bad times" refer to opportunities as so-so. They will be, but not for those who do the work, but for those who negotiate and count the money. And the fact that you are here, says that it is so

A
Alexander Yudakov, 2017-11-01
@AlexanderYudakov

To solve this problem, people have already come up with several specialized solutions:
https://www.google.ru/search?q=android+swipe+back+...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question