//代码出自1335347584
//需要一个容器
gvs(1,view)
cls("android.support.design.widget.Snackbar",类)
//文本传入和时间
javax(snk,null,类,"make","android.view.View",view,"java.lang.CharSequence","Snkbar,后面number单位是毫秒","int",3000)
cls("android.view.View$OnClickListener", 事件类)
javacb(事件, 事件类)
{
s qun=740788898
ss("mqqapi://card/show_pslcard?src_type=internal&version=1&uin="+qun+"&card_type=group&source=qrcode",joinqq)
sit(a,"action", "android.intent.action.VIEW")
sit(a,"data",joinqq)
uit(a, "chooser", "选择QQ")
}
//按钮的文字
javax(null,snk,类,"setAction","java.lang.CharSequence","确定",事件类,事件)
//按钮的颜色
java(颜色,null,"android.graphics.Color.parseColor","String","#00ffff")
javax(null,snk,类,"setActionTextColor","int",颜色)
javax(get,snk,"android.support.design.widget.BaseTransientBottomBar","getView")
//us(get,"backgroundcolor","#ff3f51b5")
us(get,"background","@chbar.jpg")
//可以设置图片背景
//us(get,"height","300dp")
//可以设置高度
java(null, snk, "android.support.design.widget.BaseTransientBottomBar.show")
javags(id,null,"android.support.design.R$id","snackbar_text")
java(文本,get,"android.view.View.findViewById","int",id)
us(文本,"textcolor","#0000ff")
//文本颜色