Android: two actions, one tab

I want to do the following:

I have only 4 tabs, but on one tab I want to have several screens that the user can change using the menu. I can fix the event when the user clicks on the right button, so no help is needed there :) that I can’t do, it to start Activity without uninstalling TabBar! I found some information about changing the look of framelayout, but I really want to start another action in the layout, and not just change the view (I want my code to be clean, you see;)

thanks in advance so in Tab A I want to be able to use actions A and B

+4
source share
2 answers

This link can help you.

+4
source

The only solution I found still replaces the view, but does it through an ActivityGroup, so the code will look normal and will be split into actions. Works great, but there are still needs for hacks such as a button click and more.

I reset this idea, however, since I later wanted to create a more flexible and stylish tab bar, I wrote my own. Works like a charm and takes about 2 business days to encode.

+2
source

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


All Articles