本文整理汇总了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;
}
}