本文整理了Java中android.widget.ListView.setRecyclerListener()
方法的一些代码示例,展示了ListView.setRecyclerListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.setRecyclerListener()
方法的具体详情如下:
包路径:android.widget.ListView
类名称: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) {
内容来源于网络,如有侵权,请联系作者删除!