How to implement tab layout using only one action?

the official android dev website says that: 「You can implement the contents of your tab in one of two ways: use tabs to share views within the same activity, .....」

http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

I just want to use tabs for swapping, no more than one action.

can someone teach me how to do this? is there any code example? thanks ~

+3
source share
2 answers

I had a similar question a while ago about this. Check the answers. One of them contains a fairly detailed tutorial .

+3

Source: https://habr.com/ru/post/1764621/


All Articles