最赞回答 / 慕虎6181031
private int evaluate(float fraction, int startValue, int endValue) { int startInt = (Integer) startValue; float startA = ((startInt &/ 2&5.0 24) &loat 0xff) / 255.0f; float startR = ((startInt & fl&at ...
2019-04-23
也可以在Fragment的onAttach(contex:Context)中设置监听:
override fun onAttach(context: Context?) {
super.onAttach(context)
if (context is OnTitleClickListener) {
listener = context
} else {
throw RuntimeException(context.toString() + " must implement OnTitleClickListener")
}
}
override fun onAttach(context: Context?) {
super.onAttach(context)
if (context is OnTitleClickListener) {
listener = context
} else {
throw RuntimeException(context.toString() + " must implement OnTitleClickListener")
}
}
2019-04-21