Open KevCel opened 7 years ago
Icon is disappeared only for fancy:floatingSearch_leftActionMode="showSearch".
It's my temporary solution: binding.searchView.postDelayed(new Runnable() { @Override public void run() { binding.searchView.setSelected(true); binding.searchView.setQueryTextSize(13); binding.searchView.setLeftActionMode(FloatingSearchView.LEFT_ACTION_MODE_SHOW_SEARCH); binding.searchView.setLeftMenuOpen(true); } }, 100);
My code:
<com.arlib.floatingsearchview.FloatingSearchView android:id="@+id/search_view" android:layout_width="match_parent" android:layout_height="match_parent" app:floatingSearch_leftActionMode="showSearch" fancy:floatingSearch_searchHint="@string/search_local_or_food" app:floatingSearch_searchBarMarginTop="32dp" app:floatingSearch_searchBarMarginRight="@dimen/margin_list_item" app:floatingSearch_searchBarMarginLeft="@dimen/margin_list_item" app:floatingSearch_searchInputTextSize="4dp" app:floatingSearch_close_search_on_keyboard_dismiss="true" />