Reusing the common layout in android application
问题 I am trying to make an application that has the following design. Login->Dashboard Dashboard has a #navigationdrawer having a listview ,of which every item opens a fragment. Dashboard has a view pager of two pages. Page 1 : listview Page2: search bar. Till now this is in place. Problem statement : The #page2 is constant it has to appear on every fragment ,but #page1 changes for every fragment . Can someone help me achieve this. I am not getting how to do it. 回答1: I think you should use search