本文整理了Java中android.support.v7.widget.SearchView.isIconified()
方法的一些代码示例,展示了SearchView.isIconified()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SearchView.isIconified()
方法的具体详情如下:
包路径:android.support.v7.widget.SearchView
类名称:SearchView
方法名:isIconified
暂无
代码示例来源:origin: square/assertj-android
public SearchViewAssert isIconified() {
isNotNull();
assertThat(actual.isIconified()) //
.overridingErrorMessage("Expected to be iconified but was not.") //
.isTrue();
return this;
}
代码示例来源:origin: square/assertj-android
public SearchViewAssert isNotIconified() {
isNotNull();
assertThat(actual.isIconified()) //
.overridingErrorMessage("Expected to not be iconified but was not.") //
.isFalse();
return this;
}
代码示例来源:origin: brkckr/TableView
@Override
public void onBackPressed()
{
// close search view on back button pressed
if (!searchView.isIconified())
{
searchView.setIconified(true);
return;
}
super.onBackPressed();
}
代码示例来源:origin: HemendraGangwar/IntentSharingAnim
@Override
public boolean onQueryTextSubmit(String query) {
Toast.makeText(HomeActivity.this, "item to search - " + query, Toast.LENGTH_SHORT).show();
if (!searchView.isIconified()) {
searchView.setIconified(true);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
myActionMenuItem.collapseActionView();
}
return false;
}
代码示例来源:origin: AppLozic/Applozic-Android-SDK
public boolean isFromSearch() {
if (!searchView.isIconified() && quickConversationFragment != null && quickConversationFragment.isVisible()) {
quickConversationFragment.stopSearching();
searchView.onActionViewCollapsed();
return true;
}
return false;
}
代码示例来源:origin: zulip/zulip-android
if (!searchView.isIconified()) {
if (actionBar != null)
actionBar.setHomeAsUpIndicator(R.drawable.ic_menu_24dp);
内容来源于网络,如有侵权,请联系作者删除!