mirror of
https://github.com/BetterAndroid/Hikage.git
synced 2025-09-07 19:14:22 +08:00
refactor: merge to BetterAndroid new usage
This commit is contained in:
@@ -28,6 +28,7 @@ class DemoApp : Application() {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
|
||||
DynamicColors.applyToActivitiesIfAvailable(this)
|
||||
}
|
||||
}
|
@@ -52,9 +52,11 @@ class MainActivity : BaseActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
setContentView {
|
||||
var username = ""
|
||||
var password = ""
|
||||
|
||||
CoordinatorLayout(
|
||||
lparams = LayoutParams(matchParent = true)
|
||||
) {
|
||||
|
@@ -31,6 +31,7 @@ abstract class BaseActivity : AppViewsActivity() {
|
||||
@CallSuper
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
PanguTextFactory2.inject(this)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user