本文整理汇总了Java中com.flyco.dialog.listener.OnBtnClickL类的典型用法代码示例。如果您正苦于以下问题:Java OnBtnClickL类的具体用法?Java OnBtnClickL怎么用?Java OnBtnClickL使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OnBtnClickL类属于com.flyco.dialog.listener包,在下文中一共展示了OnBtnClickL类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: showDialog
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
public void showDialog(String des) {
final NormalDialog dialog = new NormalDialog(mContext);
dialog.setCancelable(false); // 设置点击返回键Dialog不消失
dialog.setCanceledOnTouchOutside(false); // 设置点击屏幕Dialog不消失
dialog.isTitleShow(false)
.bgColor(Color.parseColor("#ffffff"))
.cornerRadius(5)
.content(des)
.btnNum(1)
.btnText("确定")
.contentGravity(Gravity.CENTER)
.contentTextColor(Color.parseColor("#33333d"))
.dividerColor(Color.parseColor("#dcdce4"))
.btnTextSize(15.5f, 15.5f)
.btnTextColor(Color.parseColor("#ff2814"), Color.parseColor("#0077fe"))
.widthScale(0.85f)
.show();
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
}
});
}
开发者ID:LegendKe,项目名称:MyTravelingDiary,代码行数:27,代码来源:RegisterVerifyActivity.java
示例2: nickDialog
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void nickDialog() {
final NormalDialog dialog = new NormalDialog(mContext);
dialog.isTitleShow(false)
.bgColor(Color.parseColor("#ffffff"))
.cornerRadius(5)
.content("请输入您的昵称")
.btnNum(1)
.btnText("确定")
.contentGravity(Gravity.CENTER)
.contentTextColor(Color.parseColor("#33333d"))
.dividerColor(Color.parseColor("#dcdce4"))
.btnTextSize(15.5f, 15.5f)
.btnTextColor(Color.parseColor("#ff2814"), Color.parseColor("#0077fe"))
.widthScale(0.85f)
.show();
dialog.setCanceledOnTouchOutside(false);
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
}
});
}
开发者ID:LegendKe,项目名称:MyTravelingDiary,代码行数:25,代码来源:PerfectDataActivity.java
示例3: nickCheckDialog
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void nickCheckDialog() {
final NormalDialog dialog = new NormalDialog(mContext);
dialog.isTitleShow(false)
.bgColor(Color.parseColor("#ffffff"))
.cornerRadius(5)
.content("昵称10个字符以内,可由中英文,数字、“-”、“_”组成")
.btnNum(1)
.btnText("确定")
.contentGravity(Gravity.CENTER)
.contentTextColor(Color.parseColor("#33333d"))
.dividerColor(Color.parseColor("#dcdce4"))
.btnTextSize(15.5f, 15.5f)
.btnTextColor(Color.parseColor("#ff2814"), Color.parseColor("#0077fe"))
.widthScale(0.85f)
.show();
dialog.setCanceledOnTouchOutside(false);
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
}
});
}
开发者ID:LegendKe,项目名称:MyTravelingDiary,代码行数:24,代码来源:PerfectDataActivity.java
示例4: setOnBtnClickL
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
/**
* set btn click listener(设置按钮监听事件)
* onBtnClickLs size 1, middle
* onBtnClickLs size 2, left right
* onBtnClickLs size 3, left right middle
*/
public void setOnBtnClickL(OnBtnClickL... onBtnClickLs) {
if (onBtnClickLs.length < 1 || onBtnClickLs.length > 3) {
throw new IllegalStateException(" range of param onBtnClickLs length is [1,3]!");
}
if (onBtnClickLs.length == 1) {
mOnBtnMiddleClickL = onBtnClickLs[0];
} else if (onBtnClickLs.length == 2) {
mOnBtnLeftClickL = onBtnClickLs[0];
mOnBtnRightClickL = onBtnClickLs[1];
} else if (onBtnClickLs.length == 3) {
mOnBtnLeftClickL = onBtnClickLs[0];
mOnBtnRightClickL = onBtnClickLs[1];
mOnBtnMiddleClickL = onBtnClickLs[2];
}
}
开发者ID:smuyyh,项目名称:SprintNBA,代码行数:23,代码来源:BaseAlertDialog.java
示例5: onBackPressed
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
@Override
public void onBackPressed() {
final MaterialDialog dialog = new MaterialDialog(context);
dialog.isTitleShow(false)//
.content("Are you sure to exit app?")//
.contentTextSize(18)
.btnText("Exit", "Cancel")//
.showAnim(new BounceTopEnter())//
.dismissAnim(new SlideBottomExit())//
.show();
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.superDismiss();
finish();
System.exit(0);
}
}, new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
}
});
}
开发者ID:nearor,项目名称:FlycoBanner,代码行数:26,代码来源:BannerHomeActivity.java
示例6: NormalDialogStyleOne
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void NormalDialogStyleOne() {
final NormalDialog dialog = new NormalDialog(mContext);
dialog.content("是否确定退出程序?")//
.showAnim(mBasIn)//
.dismissAnim(mBasOut)//
.show();
dialog.setOnBtnClickL(
new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "left");
dialog.dismiss();
}
},
new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "right");
dialog.dismiss();
}
});
}
开发者ID:H07000223,项目名称:FlycoDialog_Master,代码行数:24,代码来源:DialogHomeActivity.java
示例7: NormalDialogStyleTwo
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void NormalDialogStyleTwo() {
final NormalDialog dialog = new NormalDialog(mContext);
dialog.content("为保证咖啡豆的新鲜度和咖啡的香味,并配以特有的传统烘焙和手工冲。")//
.style(NormalDialog.STYLE_TWO)//
.titleTextSize(23)//
.showAnim(mBasIn)//
.dismissAnim(mBasOut)//
.show();
dialog.setOnBtnClickL(
new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "left");
dialog.dismiss();
}
},
new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "right");
dialog.dismiss();
}
});
}
开发者ID:H07000223,项目名称:FlycoDialog_Master,代码行数:27,代码来源:DialogHomeActivity.java
示例8: NormalDialogOneBtn
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void NormalDialogOneBtn() {
final NormalDialog dialog = new NormalDialog(mContext);
dialog.content("你今天的抢购名额已用完~")//
.btnNum(1)
.btnText("继续逛逛")//
.showAnim(mBasIn)//
.dismissAnim(mBasOut)//
.show();
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "middle");
dialog.dismiss();
}
});
}
开发者ID:H07000223,项目名称:FlycoDialog_Master,代码行数:18,代码来源:DialogHomeActivity.java
示例9: MaterialDialogOneBtn
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void MaterialDialogOneBtn() {
final MaterialDialog dialog = new MaterialDialog(mContext);
dialog//
.btnNum(1)
.content("为保证咖啡豆的新鲜度和咖啡的香味,并配以特有的传统烘焙和手工冲。")//
.btnText("确定")//
.showAnim(mBasIn)//
.dismissAnim(mBasOut)//
.show();
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "middle");
dialog.dismiss();
}
});
}
开发者ID:H07000223,项目名称:FlycoDialog_Master,代码行数:19,代码来源:DialogHomeActivity.java
示例10: onBackPressed
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
@Override
public void onBackPressed() {
final MaterialDialog dialog = new MaterialDialog(context);
dialog.isTitleShow(false)//
.content("是否确定退出当前App?")//
.contentTextSize(18)
.btnText("取消", "退出")//
.showAnim(new BounceTopEnter())//
.dismissAnim(new SlideBottomExit())//
.show();
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
}
}, new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.superDismiss();
finish();
System.exit(0);
}
});
}
开发者ID:H07000223,项目名称:FlycoBanner_Master,代码行数:26,代码来源:BannerHomeActivity.java
示例11: showRuleDialog
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void showRuleDialog() {
AccountInfo.getInstance().setFirstTime(false);
final NormalDialog dialog = new NormalDialog(mContext);
dialog.setCancelable(false); // 设置点击返回键Dialog不消失
dialog.setCanceledOnTouchOutside(false); // 设置点击屏幕Dialog不消失
dialog.isTitleShow(true)
.style(NormalDialog.STYLE_TWO)//
.bgColor(Color.parseColor("#ffffff"))
.cornerRadius(5)
.title("自驾约行,拼车结伴")
.titleTextSize(15.0f)
.titleTextColor(Color.parseColor("#333333"))
.content(ruleContent)
.contentTextSize(12.0f)
.btnNum(1)
.btnText("知道了")
.contentTextColor(Color.parseColor("#67676f"))
.dividerColor(Color.parseColor("#dcdce4"))
.btnTextSize(15f)
.btnTextColor(Color.parseColor("#ff2814"))
.widthScale(0.85f)
.show();
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
}
});
}
开发者ID:LegendKe,项目名称:MyTravelingDiary,代码行数:32,代码来源:TrackWayAddActivity.java
示例12: onEvent
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
public void onEvent(DisableUser event) {
Logger.d("...我要被退出了...");
AccountInfo.getInstance().clearAccount();
final NormalDialog dialog = new NormalDialog(mContext);
dialog.setCancelable(false); // 设置点击返回键Dialog不消失
dialog.setCanceledOnTouchOutside(false); // 设置点击屏幕Dialog不消失
dialog.isTitleShow(false)
.bgColor(Color.parseColor("#ffffff"))
.cornerRadius(5)
.content("您的账号涉嫌违规操作,已被后台禁用,如有问题请联系客服QQ:2015686190")
.btnNum(1)
.btnText("确定")
.contentGravity(Gravity.CENTER)
.contentTextColor(Color.parseColor("#33333d"))
.dividerColor(Color.parseColor("#dcdce4"))
.btnTextSize(15.5f, 15.5f)
.btnTextColor(Color.parseColor("#ff2814"), Color.parseColor("#0077fe"))
.widthScale(0.85f)
.show();
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
logout();
dialog.dismiss();
}
});
}
开发者ID:LegendKe,项目名称:MyTravelingDiary,代码行数:29,代码来源:MainActivity.java
示例13: confirmDeleteDialog
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
/**
* @功能描述 : 举报确认提示操作框
*/
private void confirmDeleteDialog() {
final NormalDialog dialog = new NormalDialog(mContext);
dialog.isTitleShow(false)
.bgColor(Color.parseColor("#ffffff"))
.cornerRadius(5)
.content("确定要删除这张图片?")
.btnText(" 取消", "确定")
.contentGravity(Gravity.CENTER)
.contentTextColor(Color.parseColor("#33333d"))
.dividerColor(Color.parseColor("#dcdce4"))
.btnTextSize(15.5f, 15.5f)
.btnTextColor(Color.parseColor("#0077fe"), Color.parseColor("#ff2814"))
.widthScale(0.85f)
.show();
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
}
}, new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
confirmDel();
}
});
}
开发者ID:LegendKe,项目名称:MyTravelingDiary,代码行数:32,代码来源:CaptionEditActivity.java
示例14: confirmDeleteDialog
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
/**
* @功能描述 : 删除确认提示操作框
*/
private void confirmDeleteDialog() {
final NormalDialog dialog = new NormalDialog(this);
dialog.isTitleShow(false)
.bgColor(Color.parseColor("#ffffff"))
.cornerRadius(5)
.content("确定要删除这张图片?")
.btnText(" 取消", "确定")
.contentGravity(Gravity.CENTER)
.contentTextColor(Color.parseColor("#33333d"))
.dividerColor(Color.parseColor("#dcdce4"))
.btnTextSize(15.5f, 15.5f)
.btnTextColor(Color.parseColor("#0077fe"), Color.parseColor("#ff2814"))
.widthScale(0.85f)
.show();
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
}
}, new OnBtnClickL() {
@Override
public void onBtnClick() {
confirmDel();
dialog.dismiss();
}
});
}
开发者ID:LegendKe,项目名称:MyTravelingDiary,代码行数:32,代码来源:PhotoPagerActivity.java
示例15: checkPermissionSuccess
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
@Override
public void checkPermissionSuccess(boolean hasPermission, final int code, String msg, boolean retry) {
if (!hasPermission) {
dialog = new NormalDialog(this).isTitleShow(false).content(msg)
.showAnim(new BounceTopEnter()).dismissAnim(new SlideBottomExit())
.btnNum(1);
if (retry) {
dialog.btnText("再试一次").setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
presenter.checkPermission(type, fid, tid);
dialog.dismiss();
}
});
dialog.show();
} else {
dialog.btnText("确定").setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
if (code == 4) {
dialog.dismiss();
Intent intent = new Intent(mContext, LoginActivity.class);
startActivity(intent);
}
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
finish();
}
}, 500);
}
});
dialog.show();
}
}
}
开发者ID:smuyyh,项目名称:SprintNBA,代码行数:37,代码来源:PostActivity.java
示例16: register
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
@OnClick(R.id.btnRegist)
public void register() {
dialog = new NormalDialog(this).isTitleShow(false)
.content("暂不支持虎扑账号注册,您可先到虎扑官网注册。期待后续版本更新~")
.showAnim(new BounceTopEnter()).dismissAnim(new SlideBottomExit())
.btnNum(1).btnText("确定");
dialog.setOnBtnClickL(new OnBtnClickL() {
@Override
public void onBtnClick() {
dialog.dismiss();
}
});
dialog.show();
}
开发者ID:smuyyh,项目名称:SprintNBA,代码行数:15,代码来源:LoginActivity.java
示例17: NormalDialogCustomAttr
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void NormalDialogCustomAttr() {
final NormalDialog dialog = new NormalDialog(mContext);
dialog.isTitleShow(false)//
.bgColor(Color.parseColor("#383838"))//
.cornerRadius(5)//
.content("是否确定退出程序?")//
.contentGravity(Gravity.CENTER)//
.contentTextColor(Color.parseColor("#ffffff"))//
.dividerColor(Color.parseColor("#222222"))//
.btnTextSize(15.5f, 15.5f)//
.btnTextColor(Color.parseColor("#ffffff"), Color.parseColor("#ffffff"))//
.btnPressColor(Color.parseColor("#2B2B2B"))//
.widthScale(0.85f)//
.showAnim(mBasIn)//
.dismissAnim(mBasOut)//
.show();
dialog.setOnBtnClickL(
new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "left");
dialog.dismiss();
}
},
new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "right");
dialog.dismiss();
}
});
}
开发者ID:H07000223,项目名称:FlycoDialog_Master,代码行数:34,代码来源:DialogHomeActivity.java
示例18: NormalDialoThreeBtn
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void NormalDialoThreeBtn() {
final NormalDialog dialog = new NormalDialog(mContext);
dialog.content("你今天的抢购名额已用完~")//
.style(NormalDialog.STYLE_TWO)//
.btnNum(3)
.btnText("取消", "确定", "继续逛逛")//
.showAnim(mBasIn)//
.dismissAnim(mBasOut)//
.show();
dialog.setOnBtnClickL(
new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "left");
dialog.dismiss();
}
},
new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "right");
dialog.dismiss();
}
},
new OnBtnClickL() {
@Override
public void onBtnClick() {
T.showShort(mContext, "middle");
dialog.dismiss();
}
});
}
开发者ID:H07000223,项目名称:FlycoDialog_Master,代码行数:34,代码来源:DialogHomeActivity.java
示例19: MaterialDialogDefault
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void MaterialDialogDefault() {
final MaterialDialog dialog = new MaterialDialog(mContext);
dialog.content(
"嗨!这是一个 MaterialDialogDefault. 它非常方便使用,你只需将它实例化,这个美观的对话框便会自动地显示出来。"
+ "它简洁小巧,完全遵照 Google 2014 年发布的 Material Design 风格,希望你能喜欢它!^ ^")//
.btnText("取消", "确定")//
.showAnim(mBasIn)//
.dismissAnim(mBasOut)//
.show();
dialog.setOnBtnClickL(
new OnBtnClickL() {//left btn click listener
@Override
public void onBtnClick() {
T.showShort(mContext, "left");
dialog.dismiss();
}
},
new OnBtnClickL() {//right btn click listener
@Override
public void onBtnClick() {
T.showShort(mContext, "right");
dialog.dismiss();
}
}
);
}
开发者ID:H07000223,项目名称:FlycoDialog_Master,代码行数:28,代码来源:DialogHomeActivity.java
示例20: MaterialDialogThreeBtns
import com.flyco.dialog.listener.OnBtnClickL; //导入依赖的package包/类
private void MaterialDialogThreeBtns() {
final MaterialDialog dialog = new MaterialDialog(mContext);
dialog.isTitleShow(false)//
.btnNum(3)
.content("为保证咖啡豆的新鲜度和咖啡的香味,并配以特有的传统烘焙和手工冲。")//
.btnText("确定", "取消", "知道了")//
.showAnim(mBasIn)//
.dismissAnim(mBasOut)//
.show();
dialog.setOnBtnClickL(
new OnBtnClickL() {//left btn click listener
@Override
public void onBtnClick() {
T.showShort(mContext, "left");
dialog.dismiss();
}
},
new OnBtnClickL() {//right btn click listener
@Override
public void onBtnClick() {
T.showShort(mContext, "right");
dialog.dismiss();
}
}
,
new OnBtnClickL() {//middle btn click listener
@Override
public void onBtnClick() {
T.showShort(mContext, "middle");
dialog.dismiss();
}
}
);
}
开发者ID:H07000223,项目名称:FlycoDialog_Master,代码行数:36,代码来源:DialogHomeActivity.java
注:本文中的com.flyco.dialog.listener.OnBtnClickL类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论