I use TabHost and snippets. I have 3 tabs in TabHost. On the first tab, I have 3 fragments, and the user can switch between them any number of times. My problem is that sometimes frustrations overlap. Many users asked similar questions on stackoverflow, and I tried all possible solutions, but the problem still persists.
According to the answers to stackoverflow: possible solutions I got:
- The presence of a background for each fragment: I can not do this, because my frugs do not have a background. Parental activity has a background and layout for tabs (those buttons that are used to switch between tabs) and buttons for switching fragments on the first tab, both have a translucent background that makes the kind of activity visible behind them. In accordance with this design, I can not use the background for each fragment.
- Using FragmentTranscation.replace (), using FragmentTranscation.remove () and FragmentTranscation.add () (although they both replace and remove + add work the same way).
None of these solutions helped me. Also in my application there is no need to put any fragment in backstack. Also this overlapping issue never appeared in tabs. He appeared in fragments on the first tab.
Please suggest a solution that really works in my case.
thank
seema source
share