摘要: 使用自定义Toast是为了和app的特性统一,因为本身的Toast的背景颜色是黑色的,字体是白色的,所以在你的app显示时就有可能出现不协调.因此自定义可以解决这个问题用法使用时先根据上下文 make(context)然后调用各个参数来设置属性最后别忘了调用show()方法来显示1 //使用示例,使用指定背景图显示2 3 CustomToast.make(getApplicationContext()).setDuration(0) .setBackground(R.drawable.ic_logo).setText("自定义的toast").show()... 阅读全文
posted @ 2014-03-16 20:56 act262 阅读(222) 评论(0) 推荐(0) 编辑