Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[init] ViewPager indicator 구현 #21

Merged
merged 4 commits into from
May 20, 2024
Merged

Conversation

Hyobeen-Park
Copy link
Contributor

Related issue 🛠

Work Description ✏️

  • 뷰페이저의 인디케이터로 사용될 tabLayout을 만들었습니다

Screenshot 📸

2024-05-18.202529.mp4

Uncompleted Tasks 😅

  • N/A

To Reviewers 📢

  • 프로그래스바로 만들어보려고 했는데 너무 어렵더라구요😅 그치만 TabLayout으로 구현하는 것 성공했습니다!!!! 이걸로 써도 괜찮겠죠.....?
  • 일단 TabLayout만 올리긴 했는데 viewPager adapter까지 같이 구현해서 올리는게 나을까요?????

Copy link
Contributor

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 ㅜㅜ 늦은 리뷰 죄송해요 ㅜ

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xml에서는 네이밍을 역순으로 하더라구요 (activity_main -> MainActivity)
indicator_tab_kream으로 네이밍하면 좋을 것 같네요 ~

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아하 감사합니다~!!

Copy link
Contributor

@t1nm1ksun t1nm1ksun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

탭바 커스텀하는 과정에서 맘대로 안되는 부분 많던데 고생했어...!!

Comment on lines 7 to 15
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_kream_indicator"
android:layout_width="match_parent"
android:layout_height="2dp"
app:tabBackground="@color/gray04"
app:tabIndicator="@drawable/shape_tab_indicator_rect_2"
app:tabIndicatorAnimationMode="linear"
app:tabIndicatorColor="@color/black01"
app:tabIndicatorFullWidth="true" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

화면 개수 많아지면 indicator 넓이가 짧아지나?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

예스예스!! tabLayout 길이가 고정되어 있어서 indicator는 총길이/화면 개수로 설정됩니당

@Hyobeen-Park Hyobeen-Park merged commit 980450a into develop May 20, 2024
1 check passed
@Hyobeen-Park Hyobeen-Park deleted the init-progressbar-setting branch May 20, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[init] 프로그래스바 제작
3 participants