Example #1
0
 //hides the search bar
 void HideSearch()
 {
     back.Visibility  = ViewStates.Visible;
     title.Visibility = ViewStates.Visible;
     query.Visibility = ViewStates.Gone;
     KeyboardHelper.HideKeyboard(this, query);
     totemAdapter.UpdateData(_appController.Totems);
     totemAdapter.NotifyDataSetChanged();
 }
Example #2
0
 void UpdateList()
 {
     totemList = _appController.GetTotemsFromProfiel(profile.name);
     if (totemList.Count == 0)
     {
         noTotems.Visibility = ViewStates.Visible;
         delete.Visibility   = ViewStates.Gone;
     }
     else
     {
         noTotems.Visibility = ViewStates.Gone;
         delete.Visibility   = ViewStates.Visible;
     }
     totemAdapter.UpdateData(totemList);
     totemAdapter.NotifyDataSetChanged();
 }