有没有人对此有答案。我已经查看了所有代码,但无法弄清楚?是否有任何 onResume 等我忘记了?我使用自定义 GridViewAdapter 谢谢
更新:
public static void bindGridView(final Activity context) {
if (mGridView == null) {
mGridView = (GridView)v.findViewById(R.id.grid_view_n1);
}
mFavortieAdapter = new GridViewInfo(context,FavoriteTextList, FavoriteDrawableList, FavoriteID);
mGridView.setAdapter(mFavortieAdapter);
mGridView.setSelection(0);
// Implement On Item click listener
mGridView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int position,
long arg3) {
String db_int = FavoriteIntent.get(position);
getApplicationName(db_int, context);
}
});
}
这在 onCreate 中被调用。