Skip to content
Advertisement

Fragments inside LinearLayout – Android

I’m new with fragments and I try to use these. My xml from activity is:

JavaScript

And I want to change the fragment inside of LinearLayout, my class of mainActivity is:

JavaScript

And my PlaceHolderFunctions are:

JavaScript

Why doesn’t work when I press the button? What do I doing bad? Srry for my english and thanks in advance!

PD: If you need more code or info advise me, thanks!

PD1: When I debug with my device the log cat just say me:

11-18 11:33:30.775 6065-6065/habitatprojects.hubbuildings I/ViewRootImpl﹕ ViewRoot’s Touch Event : Touch Down 11-18 11:33:30.835 6065-6065/habitatprojects.hubbuildings I/ViewRootImpl﹕ ViewRoot’s Touch Event : Touch UP

Advertisement

Answer

Solved I just need to change my LinearLayout for FrameLayout! Thanks for all!

Advertisement