protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Main); lists = FindViewById <ListView>(Resource.Id.listProperty); //inputSearch = FindViewById<EditText>(Resource.Id.inputSearch); GetList listss = new GetList(); listss.Execute(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.SelectFoodsLayout); ListView = FindViewById <ListView>(Resource.Id.listViewFoods); string dpPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "appdb.db3"); var db = new SQLiteConnection(dpPath); db.DropTable <SelectFoodsTable>();//Delete exist table db.CreateTable <SelectFoodsTable>(); //How to edit text in a EditText component in a custom view within a ListView ListView.DescendantFocusability = DescendantFocusability.AfterDescendants; //Clear the Selected food list FoodInfoList.Clear(); GetList list = new GetList(); list.Execute(); }