示例如下
class MyBaseAdapter(internal var context: MyActivity) : BaseAdapter() {
fun tt() {
context.test()
}
fun te() {
context.test(5)
}
override fun getCount(): Int {
return 0
}
override fun getItem(position: Int): Any? {
return null
}
override fun getItemId(position: Int): Long {
return 0
}
override fun getView(position: Int, convertView: View, parent: ViewGroup): View? {
return null
}
}
class MyBaseAdapter(internal var context: MyActivity) : BaseAdapter() {
fun tt() {
context.test()
}
fun te() {
context.test(5)
}
override fun getCount(): Int {
return 0
}
override fun getItem(position: Int): Any? {
return null
}
override fun getItemId(position: Int): Long {
return 0
}
override fun getView(position: Int, convertView: View, parent: ViewGroup): View? {
return null
}
}
网友评论