android.app.AlertDialog#THEME_HOLO_LIGHT源码实例Demo

下面列出了android.app.AlertDialog#THEME_HOLO_LIGHT 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: FlowGeek   文件: DialogFactory.java
public int getTheme(Context context){
    SharedPreferences preferences = SharePreferenceManager.getApplicationSetting(context);
    int theme = preferences.getInt(ApplicationSetting.KEY_THEME, ApplicationTheme.LIGHT.getKey());
    if (theme == ApplicationTheme.LIGHT.getKey()){
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            return android.R.style.Theme_Material_Light_Dialog_Alert;
        }else return AlertDialog.THEME_HOLO_LIGHT;
    }else{
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            return android.R.style.Theme_Material_Dialog_Alert;
        }else return AlertDialog.THEME_HOLO_DARK;
    }
}
 
源代码2 项目: Birdays   文件: DatePickerManager.java
/**
 * Set correct theme for day/night modes
 */
private int setTheme(boolean nightMode) {
    if (nightMode) {
        return AlertDialog.THEME_HOLO_DARK;
    } else {
        return AlertDialog.THEME_HOLO_LIGHT;
    }
}
 
源代码3 项目: quickmark   文件: SearchActivity.java
@Override
protected Dialog onCreateDialog(int id)// ��дonCreateDialog����
{
	switch (id) {
	case DATE_DIALOG_ID:// ��������ѡ��Ի���
		return new DatePickerDialog(this, AlertDialog.THEME_HOLO_LIGHT,
				mDateSetListener, mYear, mMonth, mDay);
	}
	return null;
}
 
源代码4 项目: DistroHopper   文件: Lens.java
protected void showDialog (String message, boolean error)
{
	AlertDialog.Builder dlg;
	dlg = new AlertDialog.Builder (this.context, error ? AlertDialog.THEME_HOLO_DARK : AlertDialog.THEME_HOLO_LIGHT);
	dlg.setMessage (message);
	dlg.setCancelable (true);
	dlg.setNeutralButton ("OK", null);

	dlg.show ();
}
 
源代码5 项目: Android   文件: EditProfile_Fragment.java
public void showDatePicker() {
    DatePickerDialog cc = new DatePickerDialog(getActivity(), AlertDialog.THEME_HOLO_LIGHT, dateSetListener, 1990,
            1, 1);
    cc.show();
}
 
源代码6 项目: Android   文件: SignupFragment.java
public void showDatePicker() {
    DatePickerDialog cc = new DatePickerDialog(getActivity(), AlertDialog.THEME_HOLO_LIGHT, dateSetListener, 2008,
            1, 1);
    cc.show();
}