如何在 Android 的 ParseQueryAdapter 中自定义“加载更多...”题词?当我们在适配器中有超过 25 个项目时它会出现。
最佳答案
如果您在自定义适配器中使用 ParseQueryAdapter,您可以试试这个。它对我有用。
重写这个方法
@Override
public View getNextPageView(View v, ViewGroup parent) {
if (v == null) {
// v = getDefaultView(parent.getContext());
v = View.inflate(getContext(), R.layout.activity_home_footer, null);
/*
*R.layout.activity_home_footer is your custom layout which contains a TextView named btn_load_more*
*/
}
TextView textView = (TextView) v.findViewById(R.id.btn_load_more); //set the button
textView.setText("Load more... (Customized Load more button)");
return v;
}
希望对您有所帮助!
关于android - ParseQueryAdapter "load more..."文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31917428/