當前位置: 首頁>>代碼示例>>Java>>正文


Java ProgressDialogFragment類代碼示例

本文整理匯總了Java中eu.inmite.android.lib.dialogs.ProgressDialogFragment的典型用法代碼示例。如果您正苦於以下問題:Java ProgressDialogFragment類的具體用法?Java ProgressDialogFragment怎麽用?Java ProgressDialogFragment使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ProgressDialogFragment類屬於eu.inmite.android.lib.dialogs包,在下文中一共展示了ProgressDialogFragment類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: startHandle

import eu.inmite.android.lib.dialogs.ProgressDialogFragment; //導入依賴的package包/類
private boolean startHandle(String strMsg){
	if (!HttpUtil.isNetworkConnected(this)){
		showMsg("網絡不可用,請檢測網絡狀態" + SF.NO_NETWORK);
		return false;
	}else{
		if (strMsg != null){
			endHandle();
			mProgDlg = ProgressDialogFragment.createBuilder(this, getSupportFragmentManager())
					.setMessage(strMsg)
					.setTitle("提示")
					.setCancelable(true)
					.show();
		}
		return true;
	}
}
 
開發者ID:SShineTeam,項目名稱:Huochexing12306,代碼行數:17,代碼來源:A6LoginAty.java

示例2: MyNewTask

import eu.inmite.android.lib.dialogs.ProgressDialogFragment; //導入依賴的package包/類
public MyNewTask(FragmentActivity context,String strMsg) {
	mContext = context;
	if (!HttpUtil.isNetworkConnected(context)){
		showMsg("網絡不可用,請檢測網絡狀態" + SF.NO_NETWORK);
		isContinue = false;
	}else{
		if (strMsg != null){
			try{
				dlg = ProgressDialogFragment.createBuilder(context, context.getSupportFragmentManager())
						.setMessage(strMsg)
						.setCancelable(false)
						.show();
			}catch(Exception e){
				e.printStackTrace();
			}
		}
		isContinue = true;
	}
}
 
開發者ID:SShineTeam,項目名稱:Huochexing12306,代碼行數:20,代碼來源:MyNewTask.java

示例3: MyTask

import eu.inmite.android.lib.dialogs.ProgressDialogFragment; //導入依賴的package包/類
public MyTask(FragmentActivity context,String strMsg, boolean isCheckNetwork) {
	this.mContext = context;
	if (isCheckNetwork && !HttpUtil.isNetworkConnected(context)){
		Toast.makeText(mContext, "網絡不可用,請檢測網絡狀態" + NO_NETWORK, Toast.LENGTH_SHORT).show();
		isContinue = false;
	}else{
		if (strMsg != null){
			try{
				dlg = ProgressDialogFragment.createBuilder(context, context.getSupportFragmentManager())
						.setMessage(strMsg)
						.setCancelable(true)
						.show();
			}catch(Exception e){
				e.printStackTrace();
			}
		}
		isContinue = true;
	}
}
 
開發者ID:SShineTeam,項目名稱:Huochexing12306,代碼行數:20,代碼來源:MyTask.java

示例4: handleMessage

import eu.inmite.android.lib.dialogs.ProgressDialogFragment; //導入依賴的package包/類
public void handleMessage(android.os.Message msg) {
	switch(msg.what){
	case A6Util.MSG_TOAST:
		showMsg((CharSequence)msg.obj);
		break;
	case A6Util.MSG_DISMISS_DIALOG:
		if (mDlg != null){
			mDlg.dismissAllowingStateLoss();
		}
	case A6Util.MSG_START_PROGRESS:
		String strMsg = (String)msg.obj;
		if (strMsg != null){
			try{
				if (mDlg != null){
					mDlg.dismissAllowingStateLoss();
				}
				mDlg = ProgressDialogFragment.createBuilder(BaseAty.this, getSupportFragmentManager())
						.setMessage(strMsg)
						.show();
			}catch(Exception e){
				e.printStackTrace();
				showMsg(strMsg);
			}
		}
		break;
	}
}
 
開發者ID:SShineTeam,項目名稱:Huochexing12306,代碼行數:28,代碼來源:BaseAty.java


注:本文中的eu.inmite.android.lib.dialogs.ProgressDialogFragment類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。