Adding support for different layout in plus app
@@ -86,7 +86,7 @@ public class SearchFragment extends Fragment implements AccountSelectedListener
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
- view = inflater.inflate(R.layout.fragment_search, container, false);
+ view = inflater.inflate(getLayoutId(), container, false);
findViews();
setHasOptionsMenu(true);
@@ -113,6 +113,10 @@ public class SearchFragment extends Fragment implements AccountSelectedListener
return view;
}
+ protected int getLayoutId() {
+ return R.layout.fragment_search;
+ }
+
protected void findViews() {
llFormFields = view.findViewById(R.id.llFormFields);
llAdvancedFields = view.findViewById(R.id.llAdvancedFields);
