I've tabs as activities. In one of the tabs I have a search dialog. When I inflate the search result my tabs disappear. How can I inflate the result while preserving the tabs?
Here's how I inflate the result:
LinearLayout layout = (LinearLayout) findViewById(R.id.quick_search);
if(data==null) {
LinearLayout empty = (LinearLayout) mInflater.inflate(R.layout.empty, null);
layout.addView(empty);
}
else {
LinearLayout workRequest = (LinearLayout) mInflater.inflate(R.layout.quick_search, null);
layout.addView(workRequest);
}
Actually I want to display the searched result in place of LinearLayout
'quick_search' and make sure that the view above 'quick_search' is not lost. My current method inflates the result to occupy the whole screen. How can I avoid that?