我需要创建搜索,如下所示。我已经创建了片段选项卡,在该选项卡内我应该显示数据,如下图所示。[1]:http: //i.stack.imgur.com/Rn988.png
我的java类是
public class FragmentTab extends SherlockListFragment {
@Override
public SherlockFragmentActivity getSherlockActivity() {
return super.getSherlockActivity();
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = super.onCreateView(inflater, container, savedInstanceState);
return view;
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
setUserVisibleHint(true);
// getActivity().getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.abs__action_bar_title_item);
}
}// class