Exemplo n.º 1
0
 public void Binding(ListView ls) {
   listgroup.SetListGroup();
   AdapterListViewGroupMain adapter =
       new AdapterListViewGroupMain(
           this, R.layout.customgroupmainlistview, listgroup.GetListGroup());
   ls.setAdapter(adapter);
 }
Exemplo n.º 2
0
 @Override
 public boolean onContextItemSelected(MenuItem item) {
   Database_Command com = new Database_Command(this);
   AdapterView.AdapterContextMenuInfo info =
       (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
   int menuItemIndex = item.getItemId();
   int IDGroup = listgroup.GetListGroup().get(info.position).GetID();
   switch (menuItemIndex) {
     case 0:
       com.Delete_tblContact(IDGroup);
       com.Delete_tblGroup(IDGroup);
       Binding(ls);
       break;
   }
   return true;
 }