本文整理了Java中android.widget.ExpandableListAdapter.isEmpty()
方法的一些代码示例,展示了ExpandableListAdapter.isEmpty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExpandableListAdapter.isEmpty()
方法的具体详情如下:
包路径:android.widget.ExpandableListAdapter
类名称:ExpandableListAdapter
方法名:isEmpty
暂无
代码示例来源:origin: xiangzhihong/gpuImage
@Override
public boolean isEmpty() {
ExpandableListAdapter adapter = getAdapter();
return adapter != null ? adapter.isEmpty() : true;
}
代码示例来源:origin: mttkay/calculon
public void isEmpty() {
assertTrue("list view expected to be empty, but wasn't", getAdapter().isEmpty());
}
代码示例来源:origin: jclehner/rxdroid
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
{
final int titleResId = isAllCollapsed() ? R.string._title_expand : R.string._title_collapse;
MenuItem item = menu.add(0, MENU_COLLAPSE_EXPAND, 0, titleResId)
.setIcon(isAllCollapsed() ? R.drawable.ic_action_expand_white
: R.drawable.ic_action_collapse_white)
.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item)
{
final boolean isAllCollapsed = isAllCollapsed();
if(isAllCollapsed)
expandAll(true);
else
collapseAll();
Settings.putBoolean(Keys.LOG_IS_ALL_COLLAPSED, !isAllCollapsed);
//invalidateOptionsMenu();
return true;
}
});
item.setVisible(!getListAdapter().isEmpty());
MenuItemCompat.setShowAsAction(item, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM);
super.onCreateOptionsMenu(menu, inflater);
}
内容来源于网络,如有侵权,请联系作者删除!