浮动搜索视图 FloatingSearchView
- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/arimorty/floatingsearchview
软件介绍
FloatingSearchView 是浮动搜索视图,实现了一个浮动的搜索框和搜索建议。
<com.arlib.floatingsearchview.FloatingSearchView android:id="@+id/floating_search_view" android:layout_width="match_parent" android:layout_height="match_parent" app:floatingSearch_searchBarMarginLeft="@dimen/search_view_inset" app:floatingSearch_searchBarMarginTop="@dimen/search_view_inset" app:floatingSearch_searchBarMarginRight="@dimen/search_view_inset" app:floatingSearch_showMenuAction="true" app:floatingSearch_searchHint="Search..." app:floatingSearch_voiceRecHint="Say something..." app:floatingSearch_showSearchHintWhenNotFocused="true" app:floatingSearch_showVoiceInput="true" app:floatingSearch_showOverFlowMenu="true" app:floatingSearch_hideOverflowMenuWhenFocused="true" app:floatingSearch_showSearchKey="false" app:floatingSearch_dismissOnOutsideTouch="true" app:floatingSearch_menu="@menu/menu_main"/>
mSearchView.setOnQueryChangeListener(new FloatingSearchView.OnQueryChangeListener() {
@Override
public void onSearchTextChanged(String oldQuery, final String newQuery) {
//get suggestions based on newQuery
//pass them on to the search view
mSearchView.swapSuggestions(newSuggestions);
}
});Algorithms to Live By
Brian Christian、Tom Griffiths / Henry Holt and Co. / 2016-4-19 / USD 30.00
A fascinating exploration of how insights from computer algorithms can be applied to our everyday lives, helping to solve common decision-making problems and illuminate the workings of the human mind ......一起来看看 《Algorithms to Live By》 这本书的介绍吧!
