我想知道如何在API 19 +
的DocumentsProvider中听取长时间的点击目前如果我在其上发布它会正常点击,或者如果我在刷掉项目后释放则取消
这是我想要触发的代码
//finish document provider returning folder
我必须将我的代码中的哪一个插入或是另一个
public class LocalStorageProvider extends DocumentsProvider {
@Override
public Cursor queryRoots(final String[] projection) throws FileNotFoundException {}
@Override
public AssetFileDescriptor openDocumentThumbnail(final String documentId,
final Point sizeHint,
final CancellationSignal signal) throws FileNotFoundException {}
@Override
public Cursor queryChildDocuments(final String parentDocumentId, final String[] projection,
final String sortOrder) throws FileNotFoundException {}
@Override
public Cursor queryDocument(final String documentId, final String[] projection)
throws FileNotFoundException {}
private void includeFile(final MatrixCursor result, final File file)
throws FileNotFoundException {}
@Override
public ParcelFileDescriptor openDocument(final String documentId, final String mode,
final CancellationSignal signal) throws FileNotFoundException {}
@Override
public boolean onCreate() {}
}
答案 0 :(得分:1)
这是系统提供的UI。你无法改变它的行为。这包括无法决定挂钩长按一下监听器并向其添加菜单。