android.widget.ListView.setSaveEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(212)

本文整理了Java中android.widget.ListView.setSaveEnabled()方法的一些代码示例,展示了ListView.setSaveEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.setSaveEnabled()方法的具体详情如下:
包路径:android.widget.ListView
类名称:ListView
方法名:setSaveEnabled

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

相关文章

ListView类方法