diff --git a/app/src/main/kotlin/jackall/moncalc/service/MainService.kt b/app/src/main/kotlin/jackall/moncalc/service/MainService.kt index 78102f8..6471b9c 100644 --- a/app/src/main/kotlin/jackall/moncalc/service/MainService.kt +++ b/app/src/main/kotlin/jackall/moncalc/service/MainService.kt @@ -111,15 +111,19 @@ PixelFormat.TRANSLUCENT) } - registBinding.registViewModel = OverlayRegistViewModel(this as MainServiceContract) + setSpinnerConfig() + + registViewParams?.gravity = Gravity.TOP + } + + fun setSpinnerConfig() { + registBinding.registViewModel = OverlayRegistViewModel(this as MainServiceContract, this) val templeSpinnerAdapter = CustomSpinnerAdapter(this, monstDataRealmHelper.findNames(Temple::class.java)) val fruitSpinnerAdapter = CustomSpinnerAdapter(this, monstDataRealmHelper.findNames(Fruit::class.java)) val gradeSpinnerAdapter = CustomSpinnerAdapter(this, monstDataRealmHelper.findNames(Grade::class.java)) registBinding.templeSpinner.adapter = templeSpinnerAdapter registBinding.fruitSpinner.adapter = fruitSpinnerAdapter registBinding.gradeSpinner.adapter = gradeSpinnerAdapter - - registViewParams?.gravity = Gravity.TOP } override fun showMoveView() {