-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.1.1/AN-FEAT] 포켓몬 상세에서 배틀 도우미로 가는 floating 버튼 추가(Revert 된 것 다시) (#413)
* feat(activity_pokemon_detail2): first coordinatorlayout * feat(activity_pokemon_detail2): title * chore: PokemonDetailActivity 안 쓰는 부분 일단 주석 * feat(PokemonDetail2Activity): 샘플 코드 가져와보기 * feat: activity_pokemon_detail2.xml 타입만 해결하면 되는데 * feat: OuterEvolutionAdapter, OuterEvolutionViewHolder * feat: 진화 프래그먼트 outer evolutions 로 변경 issue: 화면이 안나옴.. * fix: feat: 진화 프래그먼트 outer evolutions 로 , 화면 나옴 * fix: activity_pokemon_detail2 의 nestedScrollview 를 각 프래그먼트로 이동 * chore: ktlint, 사용하지 않는 파일 제거 * chore: ktlint, 사용하지 않는 파일 제거 * refactor(EvolutionsUiModel): ui 에서 사용하는 리스트로 변환 * refactor(EvolutionStageAdapter): 네이밍 * fix: activity_pokemon_detail.xml 최상단일 때만 상단이 가려진다 fix: #369 (review) * chore: 로그 삭제 * fix(activity_pokemon_detail): progress indicator 위치 조정 * feat: activity_pokemon_detail floating 버튼 * feat: floating 버튼에 쓰일 아이콘 * feat: floating shape_red_20_fill_20_rect 텍스트 배경 * feat: 포켓몬 상세에서 배틀로 가는 팝업 아이템 * feat: PokemonDetailBattlePopupAdapter * feat: PokemonDetailBattlePopupAdapter * feat: floating 버튼으로 배틀 이동 * chore: ktlint * feat: 배틀로 이동 시 로깅 * feat: viewModel loading * [1.1.1/AN-UI, AN-REFACTOR] 포켓몬 상세 화면 스크롤 시 애니메이션 (#369) * feat(activity_pokemon_detail2): first coordinatorlayout * feat(activity_pokemon_detail2): title * chore: PokemonDetailActivity 안 쓰는 부분 일단 주석 * feat(PokemonDetail2Activity): 샘플 코드 가져와보기 * feat: activity_pokemon_detail2.xml 타입만 해결하면 되는데 * feat: OuterEvolutionAdapter, OuterEvolutionViewHolder * feat: 진화 프래그먼트 outer evolutions 로 변경 issue: 화면이 안나옴.. * fix: feat: 진화 프래그먼트 outer evolutions 로 , 화면 나옴 * fix: activity_pokemon_detail2 의 nestedScrollview 를 각 프래그먼트로 이동 * chore: ktlint, 사용하지 않는 파일 제거 * chore: ktlint, 사용하지 않는 파일 제거 * refactor(EvolutionsUiModel): ui 에서 사용하는 리스트로 변환 * refactor(EvolutionStageAdapter): 네이밍 * fix: activity_pokemon_detail.xml 최상단일 때만 상단이 가려진다 fix: #369 (review) * chore: 로그 삭제 * fix(activity_pokemon_detail): progress indicator 위치 조정 * feat: floating button 을 배틀 아이콘 실루엣으로 설정 * refactor: battle pop up extended floating action button 으로 * refactor: battle 플로팅 액션 버튼 정적으로 넣는다 * refactor: battle floating action bar 정적으로 * refactor: FloatingButtonHandler * refactor: 네비게이션, 기존 동적 플로팅 버튼 삭제 * refactor(PokemonDetailViewModel): eventflow * fix(AnalyticsExtensions): analytic event * chore; ktlintformat * refactor: FloatingButtonHandler 를 클래스가 아닌 함수로 * feat: isExpanded save and restore * chore: ktlint
- Loading branch information
Showing
16 changed files
with
310 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
android/app/src/main/java/poke/rogue/helper/presentation/dex/detail/NavigateToBattleEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package poke.rogue.helper.presentation.dex.detail | ||
|
||
import poke.rogue.helper.presentation.dex.model.PokemonUiModel | ||
|
||
sealed class NavigateToBattleEvent { | ||
data class WithMyPokemon(val pokemon: PokemonUiModel) : NavigateToBattleEvent() | ||
|
||
data class WithOpponentPokemon(val pokemon: PokemonUiModel) : NavigateToBattleEvent() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<set xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:fillAfter="true"> | ||
<translate | ||
android:duration="300" | ||
android:fromXDelta="100%" | ||
android:toXDelta="0%" /> | ||
|
||
<scale | ||
android:toXScale="0.8" | ||
android:toYScale="0.8" | ||
android:pivotX="50%" | ||
android:pivotY="50%" /> | ||
|
||
<alpha | ||
android:duration="800" | ||
android:fromAlpha="0" | ||
android:toAlpha="1" /> | ||
|
||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<set xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:fillAfter="true"> | ||
<rotate | ||
android:duration="300" | ||
android:fromDegrees="45" | ||
android:pivotX="50%" | ||
android:pivotY="50%" | ||
android:toDegrees="0" /> | ||
|
||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<set xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:fillAfter="true"> | ||
<rotate | ||
android:duration="300" | ||
android:fromDegrees="0" | ||
android:pivotX="50%" | ||
android:pivotY="50%" | ||
android:toDegrees="45" /> | ||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<set xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:fillAfter="true"> | ||
|
||
<translate | ||
android:duration="300" | ||
android:fromXDelta="0%" | ||
android:toXDelta="100%" /> | ||
<scale | ||
android:fromXScale="0.8" | ||
android:fromYScale="0.8" | ||
android:pivotX="50%" | ||
android:pivotY="50%" | ||
android:toXScale="0.8" | ||
android:toYScale="0.8" /> | ||
|
||
<alpha | ||
android:duration="150" | ||
android:fromAlpha="1" | ||
android:toAlpha="0" /> | ||
|
||
|
||
</set> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions
14
android/app/src/main/res/drawable/shape_red_20_fill_20_rect.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<solid android:color="@color/poke_red_20" /> | ||
|
||
<corners | ||
android:topLeftRadius="12dp" | ||
android:topRightRadius="12dp" | ||
android:bottomLeftRadius="12dp" | ||
android:bottomRightRadius="12dp" /> | ||
|
||
</shape> | ||
|
Oops, something went wrong.