Exemple #1
0
        private void MSearchView_QueryTextSubmit(object sender, V7SearchView.QueryTextSubmitEventArgs e)
        {
            string lineId = e.Query.Trim();

            mGoogleMap.Clear();
            try
            {
                DrawLinesRoute(lineId);
            }
            catch (Exception)
            {
                Toast.MakeText(this, "Грешна линия", ToastLength.Short).Show();
                mSearchView.ClearAnimation();
            }
            View view = this.CurrentFocus;

            if (view != null)
            {
                InputMethodManager imm = (InputMethodManager)GetSystemService(Context.InputMethodService);
                imm.HideSoftInputFromWindow(view.WindowToken, 0);
            }
        }