2019-4-27 245 0
代码教学

java(弹窗对象,弹窗对象,"android.app.AlertDialog$Builder.*")java(null,弹窗对象,"android.app.Dialog.show")java(win,弹窗对象,"android.app.Dialog.getWindow")java(don,win,"android.view.Window.getDecorView")sa=5sb=50sc="#255779|#3e7492|#a6c0cd"sd="#333333"se="trbl"ngde(a,b,c,d,e,f)//背景us(don,"background",f)图标:javanew(弹窗对象,"android.app.AlertDialog$Builder","android.content.Context",activity)/.sbp("@icon.png",图标)java(图标,弹窗对象,"android.app.AlertDialog$Builder.setIcon","android.graphics.drawable.Drawable",图标)标题:java(null,弹窗对象,"android.app.AlertDialog$Builder.setTitle","CharSequence","标题")按钮事件:javacb(事件,事件类){}javacb(事件2,事件类){}按钮文字:javax(null,弹窗对象,"android.app.AlertDialog$Builder","setPositiveButton","CharSequence","加群",事件类,事件)javax(null,弹窗对象,"android.app.AlertDialog$Builder","setNegativeButton","CharSequence","按钮2",事件类,事件2)javax(null,弹窗对象,"android.app.AlertDialog$Builder","setNeutralButton","CharSequence","按钮3",事件类,事件2)触碰弹窗外是否可关闭:java(null,弹窗对象,"android.app.AlertDialog$Builder.setCancelable","boolean",false)按钮颜色:javags(标识,null,"android.content.DialogInterface","BUTTON_POSITIVE")javax(按钮1,弹窗对象,"android.app.AlertDialog","getButton","int",标识)javags(标识,null,"android.content.DialogInterface","BUTTON_NEGATIVE")javax(按钮2,弹窗对象,"android.app.AlertDialog","getButton","int",标识)javags(标识,null,"android.content.DialogInterface","BUTTON_NEUTRAL")javax(按钮3,弹窗对象,"android.app.AlertDialog","getButton","int",标识)us(按钮1,"textcolor","#ffff00")us(按钮2,"textcolor","#0000ff")us(按钮3,"textcolor","#00ff00")内容颜色:javags(对话框,弹窗对象,"android.app.AlertDialog","mAlert")javags(消息,对话框,"com.android.internal.app.AlertController","mMessageView")us(消息,"textcolor","#ff0000")标题颜色:javags(对话框,弹窗对象,"android.app.AlertDialog","mAlert")javags(标题,对话框,"com.android.internal.app.AlertController","mTitleView")us(标题,"textcolor","#00ffff")

第三方接口

小看一下¥(0-0)¥【sit目标的设置】用法://如,分享软件//输入对象,输入属性标识,输入属性值sit(a,"action","android.intent.action.SEND")sit(a,"type","text/plain")sit(a,"extra","android.intent.extra.SUBJECT","共享软件")sit(a,"extra","android.intent.extra.TEXT","共享内容文本")sit(a,"flags",268435456)uit(a,"chooser","标题")说明:常用于调用系统程序以及功能或第三方程序功能。可属性标识:action、type、extra、flags、data、classname、component简单调用其他例子:1.打开QQ名片surl="mqqapi://card/show_pslcard?src_type=internal&source=sharecard&version=1&uin=2244131632"sit(a,"action","android.intent.action.VIEW")sit(a,"data",url)uit(a,"chooser","跳转名片")//记得修改QQ号2244131632为你指定的QQ2.微信分享文本代码sit(a,"action","android.intent.action.SEND")sit(a,"classname","com.tencent.mm","com.tencent.mm.ui.tools.ShareImgUI")sit(a,"extra","android.intent.extra.TEXT","欢迎加入iApp助手社区,群聊号码:726651507")uit(a,"chooser","微信分享")3.QQ分享文本代码sit(a,"action","android.intent.action.SEND")sit(a,"type","text/plain")sit(a,"classname","com.tencent.mobileqq","com.tencent.mobileqq.activity.JumpActivity")sit(a,"extra","android.intent.extra.TEXT","欢迎加入iApp助手社区,群聊号码:726651507")uit(a,"chooser","QQ分享")其他自行测试!sapi="其他接口"sit(a,"action","android.intent.action.VIEW")sit(a,"data",api)uit(a,"chooser","提示选择内容可随意修改")QQ名片mqqapi://card/show_pslcard?src_type=internal&source=sharecard&version=1&uin=QQ号淘宝搜索taobao://s.taobao.com/search?打开支付宝alipays://打开收款alipays://platformapi/startapp?appId=20000123打开AA收款alipays://platformapi/startapp?appId=20000263打开付款alipay://platformapi/startapp?appId=20000056打开转账alipayqr://platformapi/startapp?saId=20000116打开二维码扫一扫alipayqr://platformapi/startapp?saId=10000007打开乘车码alipayqr://platformapi/startapp?saId=200011235打开记账alipay://platformapi/startapp?appId=20000168打开红包alipays://platformapi/startapp?appId=88886666打开滴滴alipay://platformapi/startapp?appId=20000778打开蚂蚁森林alipay://platformapi/startapp?appId=60000002打开手机充值alipayqr://platformapi/startapp?saId=10000003打开生活缴费alipays://platformapi/startapp?appId=20000193打开彩票alipays://platformapi/startapp?appId=10000011打开股票alipays://platformapi/startapp?appId=20000134打开淘票票alipays://platformapi/startapp?appId=20000131打开快递查询alipays://platformapi/startapp?appId=20000754打开还信用卡alipays://platformapi/startapp?appId=09999999打开提现alipayqr://platformapi/startapp?saId=20000033