Is there a way to replace from FragmentTabHost on Android to Fragment that is not added to tab?

Asked 2 years ago, Updated 2 years ago, 89 views

With Yongwook's advice, we changed the tab structure that was manually implemented to tabHost.

But I was wondering if there is a way to change it to a fragment that has not been added to the tab, but I don't think there is any good information, so I'm leaving a question.

I thought there would be a way to change it without adding it, or a way to hide the tab after adding no, but there is no appropriate data ㅜ/

Please give me some advice.

android fragment fragmenttabhost replace

2022-09-22 11:11

1 Answers

I'm asking myself. As I created and changed the fragment with Fragment Transition, the existing tab function did not seem to work, so I added a tab to the tab Host and changed the tab to hidden.

And then, tabHost.setCurrentTab(Constant.FRAGMENT_SAMPLE); You can move the TAB like this.


2022-09-22 11:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.