Skip to content

Commit

Permalink
[UI/#9] 상태바 색상 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed May 7, 2024
1 parent 5085e00 commit 400367e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.google.android.material.navigation.NavigationBarView
import dagger.hilt.android.AndroidEntryPoint
import kr.genti.core.base.BaseActivity
import kr.genti.core.extension.setOnSingleClickListener
import kr.genti.core.extension.setStatusBarColorFromResource
import kr.genti.presentation.R
import kr.genti.presentation.databinding.ActivityMainBinding
import kr.genti.presentation.main.create.CreateFragment
Expand All @@ -22,6 +23,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>(R.layout.activity_main) {
initBnvItemIconTintList()
initBnvItemSelectedListener()
initCreateBtnListener()
setStatusBarColor()
}

private fun initBnvItemIconTintList() {
Expand Down Expand Up @@ -61,6 +63,10 @@ class MainActivity : BaseActivity<ActivityMainBinding>(R.layout.activity_main) {
}
}

private fun setStatusBarColor() {
setStatusBarColorFromResource(R.color.background_white)
}

private inline fun <reified T : Fragment> navigateTo() {
supportFragmentManager.commit {
replace<T>(R.id.fcv_main, T::class.java.canonicalName)
Expand Down

0 comments on commit 400367e

Please sign in to comment.