示例#1
0
  @Override
  protected void onListItemClick(ListView l, View v, int position, long id) {
    Log.w(THIS_FILE, "Click at index " + position + " id " + id);
    super.onListItemClick(l, v, position, id);

    PrefGroup pref_gp = adapter.getItem(position);
    startActivity(pref_gp.intent);
  }
  @Override
  protected void onListItemClick(ListView l, View v, int position, long id) {
    super.onListItemClick(l, v, position, id);

    HashMap<String, Object> params = new HashMap<String, Object>();
    params.put("index", position);
    mController.handle(AlbumListController.MESSAGE_VIEW_ALBUM, params);
  }
示例#3
0
  /** Marks the selected item for deletion */
  @Override
  protected void onListItemClick(ListView l, View v, int position, long id) {
    super.onListItemClick(l, v, position, id);
    HashMap<String, Object> item = songlist.get(position);
    item.get("marked");
    if (item.get("marked").equals(true)) {
      item.put("marked", false);
    } else {
      item.put("marked", true);
    }

    ((SimpleAdapter) getListAdapter()).notifyDataSetChanged();
  }
 @Override
 protected void onListItemClick(ListView l, View v, int position, long id) {
   super.onListItemClick(l, v, position, id);
   // Get the item that was clicked
   PageModel o = adapter.getItem(position);
   String novel = o.toString();
   // Create new intent
   Intent intent = new Intent(this, DisplayLightNovelDetailsActivity.class);
   intent.putExtra(Constants.EXTRA_NOVEL, novel);
   intent.putExtra(Constants.EXTRA_PAGE, o.getPage());
   intent.putExtra(Constants.EXTRA_TITLE, o.getTitle());
   intent.putExtra(
       Constants.EXTRA_ONLY_WATCHED,
       getIntent().getBooleanExtra(Constants.EXTRA_ONLY_WATCHED, false));
   startActivity(intent);
   Log.d("DisplayLightNovelsActivity", o.getPage() + " (" + o.getTitle() + ")");
 }