Skip to content

Commit

Permalink
[feat/#21] 온보딩 앱바 세로 크기 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
blueme0 committed Jan 6, 2024
1 parent d21b621 commit ef76825
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import android.os.Bundle
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material.tabs.TabLayoutMediator
import com.teumteum.base.BindingActivity
import com.teumteum.base.component.appbar.AppBarLayout
import com.teumteum.base.databinding.LayoutCommonAppbarBinding
import com.teumteum.domain.entity.ViewPagerEntity
import com.teumteum.teumteum.R
import com.teumteum.teumteum.databinding.ActivityOnboardingBinding
Expand All @@ -12,7 +14,7 @@ import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class OnBoardingActivity
: BindingActivity<ActivityOnboardingBinding>(R.layout.activity_onboarding) {
: BindingActivity<ActivityOnboardingBinding>(R.layout.activity_onboarding), AppBarLayout {

private val onBoardingViewPagerAdapter = OnBoardingViewPagerAdapter()

Expand All @@ -21,10 +23,18 @@ class OnBoardingActivity
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

initAppBarLayout()
initViewPagerItem()
initViewPager()
}

override val appBarBinding: LayoutCommonAppbarBinding
get() = binding.appBar

override fun initAppBarLayout() {
setAppBarHeight(48)
}

private fun initViewPagerItem() {
viewpagerList.add(ViewPagerEntity(getString(R.string.onboarding_tv_namecard_title), getString(R.string.onboarding_tv_namecard_subtitle), 0))
viewpagerList.add(ViewPagerEntity(getString(R.string.onboarding_tv_meet_title), getString(R.string.onboarding_tv_meet_subtitle), 0))
Expand Down

0 comments on commit ef76825

Please sign in to comment.