-
Notifications
You must be signed in to change notification settings - Fork 47
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
[둘리] 1, 2단계 쇼핑 장바구니 제출합니다. #20
Merged
Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
d7cfbc7
docs: 기능 목록 작성
hyemdooly 2584164
feat: Domain 모듈 생성
hyemdooly 5ae38d7
feat: 상훔 목록을 관리하는 Repository Interface 생성
hyunji1203 d9c9fb4
feat: 장바구니를 관리하는 CartRepository Interface 생성
hyemdooly 2676ad4
feat: 최근 본 상품 목록을 관리하는 Repository Interface 생성
hyunji1203 e65d164
feat: 상품 정보를 담는 Product, 가격을 담는 Price 생성
hyemdooly 42ca12e
feat: 상품의 정보를 리턴하는 ProductMockRepository 구현
hyunji1203 25d3651
feat: ProductListActivity 이미지 제외한 화면 구성 완료
hyemdooly ccb8fc1
feat: 메인 색깔 변경
hyemdooly 52e3bc5
feat: 액션 바에 장바구니 바로가기 메뉴 추가
hyunji1203 143e31c
feat: 장바구니 화면의 액션바 안의 백버튼을 누르면 뒤로 이동하는 기능 추가
hyunji1203 633ef00
feat: 상품 이미지 Glide 적용
hyemdooly 1f24cee
refactor: 패키지 이동
hyemdooly 8dc0249
refactor: ProductListActivity MVP 패턴 적용
hyunji1203 7cca774
refactor: 장바구니 아이템 구현
hyemdooly f45ba61
feat: 장바구니 리스트 뷰 구현
hyunji1203 b58de23
feat: 상품 상세 뷰 구현
hyemdooly 964767b
feat: 장바구니 DataBase 생성 로직 구현
hyunji1203 c2fc7af
feat: CartDbRepository 구현
hyemdooly 78d597e
feat: ProductList OnClick 추가, DB 적용
hyemdooly 605c01c
feat: 상품 상세 페이지 액션 바에 뒤로가기 버튼 추가
hyunji1203 0aaecc9
refactor: MVP 패턴으로 변경
hyunji1203 a2eb1fe
feat: 최근 본 상품 리스트 추가
hyemdooly 8da62a1
feat: 최근 본 상품 datebase 기능 추가
hyunji1203 9270d70
feat: CartProduct DB 적용, 삭제 기능 추가
hyemdooly 3136470
refactor: find 리턴값 수정
hyemdooly 3206da5
refactor: notifyItemRemoved 적용
hyemdooly b83401a
feat: 페이지네이션 구현 중
hyunji1203 f858baa
feat: 더보기 구현중
hyemdooly ea478c3
feat: 더보기 구현 완료
hyemdooly a143b22
feat: 카트 페이지네이션 구현 중
hyunji1203 3bf6ad5
test: ProductListPresenterTest 작성
hyemdooly 315a8ce
refactor: ProductDetailPresenter cartRepository 추상화 적용
hyemdooly 9599973
test: ProductDetailPresenter 테스트 추가
hyunji1203 8fd10a2
refactor: Pagination 적용중
hyemdooly 08ccb68
refactor: Pagination 적용중
hyemdooly 1330e9d
feat: Pagination Button onClick 수정
hyemdooly 65cee56
fix: 페이지가 넘어가지 않는 오류 수정
hyemdooly ef8e6c9
refactor: onCreate 코드 함수 분리
hyemdooly bb1c417
refactor: 너무 긴 코드 개행
hyemdooly bf285df
refactor: 상수 선언
hyemdooly 377f7b3
refactor: constraintLayout 자식 뷰 match_parent -> 0dp로 수정
hyemdooly 11cfe23
refactor: xml formatting
hyemdooly 4fbc614
refactor: asSequence 사용하여 map 호출 시간 단축
hyemdooly 68d3fdb
refactor: Next, Prev Pagination 분리
hyemdooly 5e57cd5
refactor: CartPageStatus 생성, CartAdapter 리팩터링
hyemdooly 023a703
refactor: LayoutManager xml로 이동
hyemdooly d3a1f22
refactor: 상수 선언
hyemdooly 41b0e02
refactor: CartAdapter에서 CartViewItem 사용하여 Items를 하나로 묶음
hyemdooly 5eb3cfc
refactor: ProductListActivity 리사이클러뷰 리팩터링
hyemdooly 6e8f667
test: package 이동, ProductListPresenterTest 수정, CartPresenterTest 작성
hyemdooly 0b23bbd
refactor: 테스트 코드에서 whildcard import 수정
hyemdooly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor: constraintLayout 자식 뷰 match_parent -> 0dp로 수정
- Loading branch information
commit 377f7b30b21e1de74afb176d3d29322cb048542e
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppCompatButton과 Button의 차이점은 무엇일까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Button을 사용하면 background 속성이 적용되지 않아 AppCompatButton을 사용했습니다.
AppCompatButton 코드를 직접 뜯어봤을 때
문구를 확인할 수 있었습니다!
background의 색상을 설정할 수 있고 R.attr.fontFamily를 사용한 font family 설정도 허용됩니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppCompatButton 코드까지 직접 뜯어서 보시고 좋습니다. 👍
앞으로 개발하시다보면 보시게 될
AppCompat
은 Application Compatibility의 약자로, "앱 호환성"을 의미합니다.안드로이드는 OS 버전별로 API가 Deprecated 되기도 하며, API가 변경되기도 합니다.
그렇기에 개발자가 직접 버전 분기 코드를 작성해서 구현을 해줘야하는 번거로움이 있었습니다.
아마 영화극장 미션을 하시면서 보셨을 거에요.
매번 버전마다 분기처리를 해줘야하는 번거로움을 줄이기 위해, 구글에서
AppCompat
이라는 라이브러리를 지원하기 시작했습니다.해서, AppCompat을 사용하면 버전분기코드를 작성하지 않아도 내부에서 알아서 버전별로 분기처리를 해주게 되었습니다.
정리하면, AppCompat은 호환성과 관련되어있기 때문에, 아쉽게도 둘리가 수정한 방향은 살짝 빗나갔다고 볼 수 있습니다. 😅
추가로, 구글이 머테리얼 디자인 컴포넌트(MDC)를 적용하게 되면서 background 속성으로 색상 변경을 허용하지 않게 되었으며, background가 아닌 backgroundTint 속성을 적용하면 색상이 변경될 것입니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런 이유로 Compat이 이름에 붙었던거군요!
말씀하신대로 Button에서 backgroundTint를 사용하면 색상이 변경되는 것을 확인했는데요, 그렇다면 지금 디자인처럼 테두리가 있는 버튼일 경우에는 별도의 drawable을 만들어서 AppCompatButton을 사용해야하는 것인가요?
내부에서 분기처리 해주는 AppCompatButton이 Button보다 좋다고 말할 수 있나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A. 네 맞습니다.
A. 좋은 질문이에요!
Activity의 코드를 보시면,
AppCompatActivity
라는 것을 상속받을거에요.AppCompatActivity를 상속받게 되면, View를 Inflate하는 과정에서 제일 먼저 AppComatXXX를 사용하도록 구현되어 있어요.
그래서, AppCompatButton이 아닌 Button을 사용해도, 내부적으로는 AppCompatButton을 사용합니다. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그렇군요..! 안드로이드의 세계는 알아야할 것이 참 많네요ㅎㅎ 감사합니다!!😄