Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The search icon appears only when you click the view : Android 7.0 #246

Open
KevCel opened this issue Jun 6, 2017 · 1 comment
Open

Comments

@KevCel
Copy link

KevCel commented Jun 6, 2017

ezgif com-video-to-gif

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" />

@KevCel
Copy link
Author

KevCel commented Jun 14, 2017

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant