You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
972 B
41 lines
972 B
package xyz.fycz.myreader.custom;
|
|
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.BaseAdapter;
|
|
|
|
/**
|
|
* Created by zhao on 2017/5/15.
|
|
*/
|
|
|
|
public abstract class DragAdapter extends BaseAdapter {
|
|
|
|
/**
|
|
*
|
|
* @描述:当从from排序被拖到to排序时的处理方式,请对相应的数据做处理。
|
|
*
|
|
* @param from
|
|
* @param to
|
|
* @作者 [pWX273343] 2015年6月24日
|
|
*/
|
|
public abstract void onDataModelMove(int from, int to);
|
|
|
|
/**
|
|
* 复制View使用的方法,默认直接使用getView方法获取
|
|
* @param position
|
|
* @param convertView
|
|
* @param parent
|
|
* @return
|
|
*/
|
|
public View copyView(int position, View convertView, ViewGroup parent) {
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* 是否启用copyView方法
|
|
* @return true 使用copyView复制 false 使用getView直接获取镜像
|
|
*/
|
|
public boolean isUseCopyView() {
|
|
return false;
|
|
}
|
|
}
|
|
|