@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_search); _imgDownloader = new ImageDownloader(this); _imgDownloader.setImageFilePrefix(AppConfig.IMAGE_CACHE_FILE_PREFIX); // 标题 TextView titleTextView = (TextView) this.findViewById(R.id.textViewTitle); titleTextView.setText("搜索"); _loadingLayer = (ViewGroup) findViewById(R.id.loading_layer); _loadingImageView = (ImageView) _loadingLayer.findViewById(R.id.imageViewLoading); _loadingTextView = (TextView) _loadingLayer.findViewById(R.id.textViewLoading); _inputBoxTextView = (TextView) this.findViewById(R.id.textViewInputBox); _listView = (ListView) this.findViewById(R.id.listView); _listView.setDividerHeight(0); _listView.setSelector(R.drawable.bg_download_list_selected); _listView.setVerticalScrollBarEnabled(true); _listView.setOnItemClickListener(this); _adapter = new MyAdapter(this); _listView.setAdapter(_adapter); buildKeyboard(); // HomeDataLoader.loadAllAppList(this, _allAppList); }
@Override public void onResume() { AppConfig.showLog("onResume(), ...."); if (_appDetailDialog != null) _appDetailDialog.onResume(); super.onResume(); }