@Override public void onResume() { // TODO Auto-generated method stub super.onResume(); if (isFirstResume == false) { } else { isFirstResume = false; } }
@Override public void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); onAbsBuildActionBar(); // IntentFilter iFilter = new IntentFilter(""); // LocalBroadcastManager.getInstance(getActivity()).registerReceiver(broadcastReceiver, // iFilter); }
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { // TODO Auto-generated method stub super.onCreateOptionsMenu(menu, inflater); inflater.inflate(R.menu.menu_search, menu); mSMenuItem = menu.findItem(R.id.menu_search); mSearchView = new SearchView(getSherlockActivity().getSupportActionBar().getThemedContext()); mSEditText = (AutoCompleteTextView) mSearchView.findViewById(com.actionbarsherlock.R.id.abs__search_src_text); mSMenuItem.setActionView(mSearchView); // mSEditText.setInputType(EditorInfo.TYPE_NULL); // mSView.setIconifiedByDefault(false); // mSearchView.setIconified(false); mSearchView.setOnQueryTextListener(this); mSearchView.setQueryHint(getSherlockActivity().getString(R.string.search_hint)); mSEditText.setOnFocusChangeListener(this); mSEditText.setOnClickListener(this); mSEditText.setThreshold(100); // 防止 mHander.sendEmptyMessageDelayed(0, 400); // }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putInt("mPageNum", mPageNum); outState.putInt("mPageCount", mPageCount); }
@Override public void onPause() { super.onPause(); FundUtils.exeOptional(AppFrame.getApp()); }