package com.suliang.common.base.adapter | |||||
import androidx.lifecycle.ViewModel | |||||
abstract class BaseAdapterVM<T,VM:ViewModel> : BaseAdapter<T>() { | |||||
} |
package com.suliang.common.extension | |||||
import androidx.annotation.IdRes | |||||
import androidx.appcompat.app.AppCompatActivity | |||||
import androidx.fragment.app.Fragment | |||||
//inline fun <reified T : Fragment> AppCompatActivity.addFragment(@IdRes containerViewId:Int){ | |||||
// supportFragmentManager.beginTransaction() | |||||
// .add(containerViewId,newInstanceFragment<T>()).commit() | |||||
//} |