本文整理了Java中android.widget.ListView.setSaveEnabled()
方法的一些代码示例,展示了ListView.setSaveEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.setSaveEnabled()
方法的具体详情如下:
包路径:android.widget.ListView
类名称:ListView
方法名:setSaveEnabled
暂无
代码示例来源:origin: k9mail/k-9
listView.setSaveEnabled(true);
代码示例来源:origin: ISchwarz23/SortableTableView
@Override
public void setSaveEnabled(final boolean enabled) {
super.setSaveEnabled(enabled);
tableHeaderView.setSaveEnabled(enabled);
tableDataView.setSaveEnabled(enabled);
}
代码示例来源:origin: geniusgithub/AndroidDialer
protected void onCreateView(LayoutInflater inflater, ViewGroup container) {
mView = inflateView(inflater, container);
mListView = (ListView)mView.findViewById(android.R.id.list);
if (mListView == null) {
throw new RuntimeException(
"Your content must have a ListView whose id attribute is " +
"'android.R.id.list'");
}
View emptyView = mView.findViewById(android.R.id.empty);
if (emptyView != null) {
mListView.setEmptyView(emptyView);
}
mListView.setOnItemClickListener(this);
mListView.setOnItemLongClickListener(this);
mListView.setOnFocusChangeListener(this);
mListView.setOnTouchListener(this);
mListView.setFastScrollEnabled(!isSearchMode());
// Tell list view to not show dividers. We'll do it ourself so that we can *not* show
// them when an A-Z headers is visible.
mListView.setDividerHeight(0);
// We manually save/restore the listview state
mListView.setSaveEnabled(false);
configureVerticalScrollbar();
configurePhotoLoader();
getAdapter().setFragmentRootView(getView());
ContactListViewUtils.applyCardPaddingToView(getResources(), mListView, mView);
}
内容来源于网络,如有侵权,请联系作者删除!