Exemplo n.º 1
0
        //public string Path="";

        protected async override void OnCreate(Bundle bundle)
        {
            // string path = "C:/Users/mof1/Documents/Visual Studio 2015/Projects/NDSSF/NDSSF/recordings/test.3gpp";
            System.Diagnostics.Debug.Write("------------------------->OnCreate()");
            base.OnCreate(bundle);



            SetContentView(Resource.Layout.STE1);
            slistview = FindViewById <ListView>(Resource.Id.listView2);

            sList = (await DataRepository.Sentences.GetAll());
            // wordStrings = new List<string>();

            MyServiceItemsAdapter       = new MyAdapter2(this, sList);
            slistview.Adapter           = MyServiceItemsAdapter;
            slistview.FastScrollEnabled = true;
            inputsearch              = FindViewById <EditText>(Resource.Id.inputSearch1);
            inputsearch.TextChanged += nsearch_textchanged;

            ImageButton ste = FindViewById <ImageButton>(Resource.Id.myButton4);

            ste.Click += delegate
            {
                StartActivity(typeof(STE3));
            };
        }
Exemplo n.º 2
0
        void nsearch_textchanged(object sender, Android.Text.TextChangedEventArgs e)
        {
            List <Sentence> nlist = (from n in sList
                                     where n.Text.StartsWith(inputsearch.Text)
                                     select n).ToList <Sentence>();

            MyServiceItemsAdapter = new MyAdapter2(this, nlist);
            slistview.Adapter     = MyServiceItemsAdapter;
        }