Java findViewById Kotlin findViewById 1234567 private val button by bindView<Button>(R.id.button)private val button:Button by (R.id.button)fun <T : View> Activity.(@IdRes res: Int): Lazy<T> { return lazy { findViewById<T>(res) }} 赞微海报分享
近期评论