-
Notifications
You must be signed in to change notification settings - Fork 4
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
마인드맵 텍스트 크기 자동화 #66
마인드맵 텍스트 크기 자동화 #66
Conversation
더블 클릭 시 텍스트 박스 그리기, 빈 화면 단일 클릭 시 텍스트 박스 지우기
더블 클릭 시 해당 지점에 노드가 있다면 다이얼로그를 출력
NodeClickListener color 추가, 다이얼로그 배경색 노드 배경색과 일치화
너비와 높이를 모두 반영해야하는데, 초기의 너비만 반영함. 따라서 높이가 반영이 안되는 문제가 생김.
# Conflicts: # AOS/app/src/main/java/boostcamp/and07/mindsync/ui/view/NodeView.kt
LGTM |
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.
고생 많으셨습니다!
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="AnimationDialogStyle"> | ||
<item name="android:windowEnterAnimation">@anim/dialog_open</item> | ||
<item name="android:windowExitAnimation">@anim/dialog_close</item> | ||
</style> | ||
</resources> |
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.
애니메이션까지..! 👍
return null | ||
} | ||
|
||
private fun checkRange(node: Node, x: Float, y: Float): Boolean { |
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.
저는 checkRange
라는 이름에서 check가 뭔가 True, False를 반환하는 타입 같아 보이지 않는 것 같다고 느껴지는 것 같아요. Range도 살짝 아쉬운데.. isInsideNode
같은 이름은 어떤가요?
interface NodeClickListener { | ||
fun onDoubleClicked(node: Node,color:Int) | ||
} |
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.
불필요한 리스너가 추가 된 것 같아요!! 확인 부탁드려요
checkRange -> isInsideNode NodeClickListener 제거 -> viewModel 대체 DialogInterface 변수명 수정
관련 이슈
작업한 내용
텍스트에 따른 노드 크기 조절
선택 시 stroke 표시
참고자료