import android.app.Dialog;
import android.content.Context;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.FrameLayout;
import android.widget.TextView;
import com.bigkoo.pickerview.builder.OptionsPickerBuilder;
import com.bigkoo.pickerview.builder.TimePickerBuilder;
import com.bigkoo.pickerview.listener.OnOptionsSelectListener;
import com.bigkoo.pickerview.listener.OnTimeSelectListener;
import com.bigkoo.pickerview.view.OptionsPickerView;
import com.bigkoo.pickerview.view.TimePickerView;
import com.ruanmeng.newstar.R;
import com.ruanmeng.newstar.nohttp.ToastUtil;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
/**
* @param
* @Comments : 选择器
* @Author : Lampo
* @CreateDate : 2019/7/6 15:24
* @ModifiedBy : Lampo
* @ModifiedDate : 2019/7/6 15:24
* @Modified :
*/
public class SelectorDialogUtils {
private static OptionsPickerView optionsPickerView;
private static TimePickerView timePickerView;
private static SelectorCallback callback;
private static SelectorDialogUtils dialog;
public void setCallback(SelectorCallback callback) {
this.callback = callback;
}
public static SelectorDialogUtils getInstance() {
if (dialog == null) {
dialog = new SelectorDialogUtils();
}
return dialog;
}
/**
* 单选
*
* @param context
* @param title 选择器标题
* @param list 选择器内容
* @return
*/