void startDrag(CellLayout.CellInfo cellInfo) {
View child = cellInfo.cell;
//在此去判定,拖动的图标,是否跟我们的不想被拖动图标的包名一致即可。
ItemInfo info = (ItemInfo)child.getTag();
if(info instanceof ShortcutInfo){
ShortcutInfo tempInfo=(ShortcutInfo) info;
if("com.ferris.xxx".equals(tempInfo.getIntent().getPackage())){
return;
}
}
// Make sure the drag was started by a long press as opposed to a long click.
if (!child.isInTouchMode()) {
return;
}
mDragInfo = cellInfo;
child.setVisibi
View child = cellInfo.cell;
//在此去判定,拖动的图标,是否跟我们的不想被拖动图标的包名一致即可。
ItemInfo info = (ItemInfo)child.getTag();
if(info instanceof ShortcutInfo){
ShortcutInfo tempInfo=(ShortcutInfo) info;
if("com.ferris.xxx".equals(tempInfo.getIntent().getPackage())){
return;
}
}
// Make sure the drag was started by a long press as opposed to a long click.
if (!child.isInTouchMode()) {
return;
}
mDragInfo = cellInfo;
child.setVisibi