Browse Source

adapter

master
suliang 2 years ago
parent
commit
4285a0d901

+ 7
- 0
lib/common/src/main/java/com/suliang/common/base/adapter/BaseAdapterVM.kt View File

@@ -0,0 +1,7 @@
package com.suliang.common.base.adapter

import androidx.lifecycle.ViewModel

abstract class BaseAdapterVM<T,VM:ViewModel> : BaseAdapter<T>() {

}

+ 10
- 0
lib/common/src/main/java/com/suliang/common/extension/ActivityFragmentExtension.kt View File

@@ -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()
//}

Loading…
Cancel
Save