i have a strange problem :
i have button in a activity and a function for onClick event
fun sendComment(view: View): Unit {
Sneaker.with(this) // Activity, Fragment or ViewGroup
.setTitle("Warning!!")
.setMessage("This is the warning message")
.sneakWarning()
Toast.makeText(this,"show",Toast.LENGTH_LONG).show()
}
Toast show correct but Sneaker don't show!!
but i have a other Sneaker on onCreate activity function It is displayed correctly
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_contact)
val typeface= Typeface.createFromAsset(assets,getString(R.string.font_path))
_tv_name.typeface = typeface
_tv_phone_number.typeface = typeface
_tv_comment.typeface = typeface
_tl_comment.typeface = typeface
_tl_phone_number.typeface = typeface
_tl_name.typeface = typeface
Sneaker.with(this) // Activity, Fragment or ViewGroup
.setTitle("Warning!!")
.setMessage("This is the warning message")
.sneakWarning()
}
i test it on genymotion samsung S7 and Samsung S5
i have a strange problem :
i have button in a activity and a function for onClick event
Toast show correct but Sneaker don't show!!
but i have a other Sneaker on
onCreateactivity function It is displayed correctlyi test it on genymotion samsung S7 and Samsung S5