示例#1
0
  @Override
  public void onResume() {
    super.onResume();
    Log.d(LOG_TAG, "onResume()");

    for (int i = 0; i <= mList.getChildCount(); i++) {
      mAdapter.updatePlusOne(mList.getChildAt(i));
    }
  }
示例#2
0
  @Override
  public boolean onContextItemSelected(MenuItem item) {
    AdapterView.AdapterContextMenuInfo info =
        (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
    Activity activity = (Activity) mAdapter.getItem(info.position);

    switch (item.getItemId()) {
      case R.id.share_with_googleplus:
        shareWithGooglePlus(activity);
        return true;
      default:
        return super.onContextItemSelected(item);
    }
  }