In m activity there is a fragment which contains several buttons. When one of them clicked those buttons suppose to vanish and other buttons suppose to appear. I could do it with a fragment per button group but it seems as an ugly solution since i will need many fragments when each of them holds just several buttons.
Could you suggest a better approach? I thought maybe creating several xml layout files and onClick inflating the necessary one in the same fragment but it doesnt seem to work. Is it the right approach? what could you suggest?