コード例 #1
0
  @Override
  public void onViewCreated(final View view, final Bundle savedInstanceState) {
    final ListView listView = getListView();

    if (listView == null) {
      Lg.e("no list view");
      return;
    }

    listView.setDivider(null);
  }
コード例 #2
0
  @Override
  public void onListItemClick(final ListView l, final View v, final int position, final long id) {
    final String simlarId = getSimlarId(position);
    if (Util.isNullOrEmpty(simlarId)) {
      Lg.e("onListItemClick: no simlarId found");
      return;
    }

    Lg.i("starting CallActivity with simlarId=", new Lg.Anonymizer(simlarId));
    startActivity(
        new Intent(getActivity(), CallActivity.class)
            .putExtra(CallActivity.INTENT_EXTRA_SIMLAR_ID, simlarId)
            .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP));
  }