Android Open Source - VankeTV File Select Dialog






From Project

Back to project page VankeTV.

License

The source code is released under:

GNU General Public License

If you think the Android project VankeTV listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.baidu.bvideoviewsample1.filesselect;
//from   www .jav  a 2  s. com
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;

import java.io.FileFilter;

public class FileSelectDialog {
    private final static String TAG = "FileSelectDialog";
    private final static String S_PARENT_FOLDER = "..";
    private final static String S_CURRENT_FOLDER = ".";

    private FileSelectDialog() {
        // ?????
    }
    
    public static Dialog createDialog(Context context, String title, FileFilter fileFilter, FileSelectedCallBackBundle callback) {
        AlertDialog.Builder builder = new AlertDialog.Builder(context);
        builder.setView(new FileSelectListView(context, fileFilter, callback));
        Dialog dialog = builder.create();

        dialog.setTitle(title);
        return dialog;
    }
}




Java Source Code List

com.baidu.bvideoviewsample1.BuildConfig.java
com.baidu.bvideoviewsample1.MainActivity.java
com.baidu.bvideoviewsample1.VideoViewPlayingActivity.java
com.baidu.bvideoviewsample1.filesselect.FileItem.java
com.baidu.bvideoviewsample1.filesselect.FileSelectDialog.java
com.baidu.bvideoviewsample1.filesselect.FileSelectListView.java
com.baidu.bvideoviewsample1.filesselect.FileSelectedCallBackBundle.java
com.baidu.bvideoviewsample1.view.SubtitleSettingPopupWindow.java