| @@ -0,0 +1,7 @@ | |||
| package com.suliang.common.base.adapter | |||
| import androidx.lifecycle.ViewModel | |||
| abstract class BaseAdapterVM<T,VM:ViewModel> : BaseAdapter<T>() { | |||
| } | |||
| @@ -0,0 +1,10 @@ | |||
| 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() | |||
| //} | |||