/// <summary> /// Shows the search bar. /// </summary> private void ShowSearchBar() { _searchBarIsVisible = true; var anim = new TranslateAnimation(_listview.GetX(), _listview.GetX(), _listview.GetY(), 0) { Duration = 50, FillAfter = true }; _listview.StartAnimation(anim); _searchText.Visibility = ViewStates.Visible; _countText.Visibility = ViewStates.Visible; var searchAnim = new TranslateAnimation(_searchText.GetX(), _searchText.GetX(), _searchText.GetY(), 0) { Duration = 50, FillBefore = true }; _searchText.StartAnimation(searchAnim); var countAnim = new TranslateAnimation(_countText.GetX(), _countText.GetX(), _countText.GetY(), 0) { Duration = 50, FillBefore = true }; _countText.StartAnimation(countAnim); }