ReorderableBaseAdapter.java revision 7e3fa36d69ffee874dd364b8e3d9aa3cab9a273b
/*
* FreeOTP
*
* Authors: Nathaniel McCallum <npmccallum@redhat.com>
*
* Copyright (C) 2013 Nathaniel McCallum, Red Hat
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
public abstract class ReorderableBaseAdapter extends BaseAdapter {
private class Reference<T> {
public Reference(T t) {
reference = t;
}
T reference;
}
if (convertView == null) {
case DragEvent.ACTION_DRAG_ENTERED:
break;
case DragEvent.ACTION_DRAG_ENDED:
public void run() {
}
});
break;
}
return true;
}
});
// Force a reset of any states
// Start the drag on the main loop to allow
// the above state reset to settle.
public void run() {
}
});
return true;
}
});
}
return convertView;
}
}