diff --git a/app/src/main/java/kr/co/vividnext/sodalive/v2/main/home/ui/HomePagerSnapRecyclerView.kt b/app/src/main/java/kr/co/vividnext/sodalive/v2/main/home/ui/HomePagerSnapRecyclerView.kt new file mode 100644 index 00000000..998aeaa1 --- /dev/null +++ b/app/src/main/java/kr/co/vividnext/sodalive/v2/main/home/ui/HomePagerSnapRecyclerView.kt @@ -0,0 +1,19 @@ +package kr.co.vividnext.sodalive.v2.main.home.ui + +import android.content.Context +import android.util.AttributeSet +import androidx.recyclerview.widget.PagerSnapHelper +import androidx.recyclerview.widget.RecyclerView + +class HomePagerSnapRecyclerView @JvmOverloads constructor( + context: Context, + attrs: AttributeSet? = null, + defStyleAttr: Int = 0 +) : RecyclerView(context, attrs, defStyleAttr) { + private val snapHelper = PagerSnapHelper() + + init { + clipToPadding = false + if (onFlingListener == null) snapHelper.attachToRecyclerView(this) + } +} diff --git a/app/src/main/res/drawable/bg_home_genre_creator_group.xml b/app/src/main/res/drawable/bg_home_genre_creator_group.xml new file mode 100644 index 00000000..ea159144 --- /dev/null +++ b/app/src/main/res/drawable/bg_home_genre_creator_group.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/app/src/main/res/layout/fragment_v2_main_home.xml b/app/src/main/res/layout/fragment_v2_main_home.xml index b9800a54..83f03dfc 100644 --- a/app/src/main/res/layout/fragment_v2_main_home.xml +++ b/app/src/main/res/layout/fragment_v2_main_home.xml @@ -165,42 +165,14 @@ android:layout_marginTop="@dimen/spacing_48" android:orientation="vertical"> - - - - - - - - - - + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/item_home_genre_creator_profile.xml b/app/src/main/res/layout/item_home_genre_creator_profile.xml new file mode 100644 index 00000000..65b6bb43 --- /dev/null +++ b/app/src/main/res/layout/item_home_genre_creator_profile.xml @@ -0,0 +1,38 @@ + + + + + + + diff --git a/app/src/main/res/values-en/strings.xml b/app/src/main/res/values-en/strings.xml index dbf86b15..fa610fa9 100644 --- a/app/src/main/res/values-en/strings.xml +++ b/app/src/main/res/values-en/strings.xml @@ -248,7 +248,7 @@ Recently debuted creators Grow together from the start! Chat with creators! - creators + \u0020creators Creators with recent cheers Popular community Live diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e2dd4a98..4c784fb0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -247,7 +247,7 @@ 최근 데뷔한 크리에이터 처음부터 함께 성장! 크리에이터와 이야기를 나눠요! - 의 크리에이터 + \u0020크리에이터 최근 응원이 많은 크리에이터 인기 커뮤니티 라이브