android studio java setvisbility of spinner
private void endMultiSelectMode() { mCheckedCardPositions.clear(); mInMultiSelectMode = false; // If view which was originally selected when entering multi-select is visible then maintain its position View view = mCardsListView.getChildAt(mLastSelectedPosition - mCardsListView.getFirstVisiblePosition()); if (view != null) { recenterListView(view); } // update adapter to remove check boxes mCardsAdapter.notifyDataSetChanged(); // update action bar supportInvalidateOptionsMenu(); mActionBarSpinner.setVisibility(View.VISIBLE); mActionBarTitle.setVisibility(View.GONE); }