コード例 #1
0
  @Override
  public void onListItemClick(ListView l, View v, int position, long id) {
    super.onListItemClick(l, v, position, id);

    Gde gde = (Gde) mAdapter.getItem(position);
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(gde.getSocialUrl())));
  }
コード例 #2
0
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    mAdapter = new GdeAdapter(getActivity(), ((GdgActivity) getActivity()).getGoogleApiClient());

    if (getArguments().containsKey(ARG_GDES)) {
      ArrayList<Gde> gdeList = getArguments().getParcelableArrayList(ARG_GDES);
      mAdapter.addAll(gdeList);
    }

    setListAdapter(mAdapter);
  }