feat(activity): 新增 SingleFragmentActivity 通用 Fragment 容器页
This commit is contained in:
@@ -126,6 +126,9 @@ open class BaseActivity : AppCompatActivity() {
|
||||
)
|
||||
}
|
||||
|
||||
/** 返回 Fragment 容器的 View ID,供子类加载 Fragment 使用 */
|
||||
protected fun getFragmentContainerId(): Int = R.id.flContainer
|
||||
|
||||
override fun setContentView(view: View?) {
|
||||
if (view == binding.root) {
|
||||
super.setContentView(view)
|
||||
|
||||
Reference in New Issue
Block a user