enter image description here On clicking any of the tabs I want to expand the container which contains textfield as in picture 2.
enter image description here Then I want to switch tabs but second click on same tab should contract the container like before.