Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

[BZZRWRDD-262] Floating Tab 아이콘, 사이즈 변경시키기 (for AnchoredState) #10

Merged
merged 2 commits into from
Feb 19, 2019

Conversation

SeoJungHong
Copy link

@SeoJungHong SeoJungHong commented Feb 19, 2019

  • Anchored 아이콘 변경 : PopConfig 에서 전달하는 아이콘 Drawable 에 android:state_selected="true" item 을 따로 정의해서 구현한다. 라이브러리에서는 Anchored 일때 setSelected() 만 호출해 준다.
  • Anchored 사이즈 변경 : FloatingTab 에 shrink, expand 메소드 구현

Copy link

@josh-yun josh-yun left a comment

Choose a reason for hiding this comment

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

Tab size가 view의 사이즈에 따라 바뀔 수 있으면 좋을것 같긴한데 굳이 필요 없을것 같기도 하네요.
LGTM입니다~ 👍

@SeoJungHong
Copy link
Author

@josh-yun Dock 로직에서 FloatingTab 이 튕겨서 어디에 고정될 것인가 계산할 때랑, 처음에 FloatingTab 의 위치를 결정할 때 dimens.hover_tab_size (72dp) 값을 사용하고 있어요. 후자의 경우 특히 아직 뷰가 그려지기 전이라서 간단한 방법으로는 구현하기가 어렵더라구요. 아직까지는 오버 엔지니어링 같아서 그렇게 하려다 접었습니다ㅎㅎ..

@SeoJungHong SeoJungHong merged commit 9111eca into master Feb 19, 2019
@SeoJungHong SeoJungHong deleted the feature/adjust_pop_size branch February 19, 2019 09:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants