A
A
AndreyAlt862015-07-25 09:37:10
Android
AndreyAlt86, 2015-07-25 09:37:10

How to correctly change fragments in a container?

Hello!
The problem is this - there is a Navigation Draver, on clicks in which I want to change the contents of the container, i.e. replay fragments. Currently 2 fragments. Each fragment has a TabHost, the tabs of which are also implemented through fragments, i.e. via PageAdapter. When the application starts, I place the first fragment in the container. Then, when I click, I do a replace on another fragment, but the tabs are not displayed in the second fragment. If the device is rotated 90 degrees, the tabs appear. What should I do and how should I be? I've been googling for 3 days now.
I hope for your help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bracadabra, 2015-07-30
@bracadabra

It would be nice to add a test case. It's hard to tell what the problem is without code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question