本文整理匯總了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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}