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

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

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

ListView.setRecyclerListener介绍

暂无

代码示例

代码示例来源:origin: gigabytedevelopers/FireFiles

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  final Context context = inflater.getContext();
  final Resources res = context.getResources();
  final View view = inflater.inflate(R.layout.fragment_directory, container, false);
  mProgressBar = (MaterialProgressBar) view.findViewById(R.id.progressBar);
  mEmptyView = (CompatTextView)view.findViewById(android.R.id.empty);
  mListView = (ListView) view.findViewById(R.id.list);
  mListView.setOnItemClickListener(mItemListener);
  mListView.setMultiChoiceModeListener(mMultiListener);
  mListView.setRecyclerListener(mRecycleListener);
  // Indent our list divider to align with text
  final Drawable divider = mListView.getDivider();
  final boolean insetLeft = res.getBoolean(R.bool.list_divider_inset_left);
  final int insetSize = res.getDimensionPixelSize(R.dimen.list_divider_inset);
  if (insetLeft) {
    mListView.setDivider(new InsetDrawable(divider, insetSize, 0, 0, 0));
  } else {
    mListView.setDivider(new InsetDrawable(divider, 0, 0, insetSize, 0));
  }
  mGridView = (GridView) view.findViewById(R.id.grid);
  mGridView.setOnItemClickListener(mItemListener);
  mGridView.setMultiChoiceModeListener(mMultiListener);
  mGridView.setRecyclerListener(mRecycleListener);
  return view;
}

代码示例来源:origin: andforce/iBeebo

public UserListAdapter(Fragment activity, List<UserBean> bean, ListView listView) {
  this.bean = bean;
  this.commander = TimeLineBitmapDownloader.getInstance();
  this.inflater = activity.getActivity().getLayoutInflater();
  this.listView = listView;
  this.activity = activity;
  defaultBG = activity.getResources().getColor(R.color.transparent);
  checkedBG = ThemeUtility.getColor(R.attr.listview_checked_color);
  listView.setRecyclerListener(new AbsListView.RecyclerListener() {
    @Override
    public void onMovedToScrapHeap(View view) {
      ViewHolder holder = (ViewHolder) view.getTag();
      if (holder == null) {
        return;
      }
      holder.avatar.setImageDrawable(null);
    }
  });
}

代码示例来源:origin: stackoverflow.com

listview.setRecyclerListener(new AbsListView.RecyclerListener() {
  @Override
  public void onMovedToScrapHeap(View view) {

相关文章

ListView类方法