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

마인드맵 텍스트 크기 자동화 #66

Merged
merged 21 commits into from
Nov 20, 2023

Conversation

jaehan4707
Copy link
Member

관련 이슈

작업한 내용

텍스트에 따른 노드 크기 조절

image

선택 시 stroke 표시

image

참고자료

더블 클릭 시 텍스트 박스 그리기, 빈 화면 단일 클릭 시 텍스트 박스 지우기
더블 클릭 시 해당 지점에 노드가 있다면 다이얼로그를 출력
NodeClickListener color 추가,
다이얼로그 배경색 노드 배경색과 일치화
너비와 높이를 모두 반영해야하는데, 초기의 너비만 반영함. 따라서 높이가 반영이 안되는 문제가 생김.
# Conflicts:
#	AOS/app/src/main/java/boostcamp/and07/mindsync/ui/view/NodeView.kt
@github-actions github-actions bot added 📱AOS 안드로이드 작업 🎨UI UI 작업 labels Nov 20, 2023
@yang1318 yang1318 added this to the 마인드 맵 milestone Nov 20, 2023
@hegleB
Copy link
Member

hegleB commented Nov 20, 2023

LGTM

Copy link
Collaborator

@yang1318 yang1318 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 +1 to +7
<?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>
Copy link
Collaborator

@yang1318 yang1318 Nov 20, 2023

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 {
Copy link
Collaborator

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 같은 이름은 어떤가요?

@yang1318 yang1318 added the 💡Feature 기능 개발 label Nov 20, 2023
Comment on lines 5 to 7
interface NodeClickListener {
fun onDoubleClicked(node: Node,color:Int)
}
Copy link
Member

@hegleB hegleB Nov 20, 2023

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 변수명 수정
@yang1318 yang1318 merged commit c124d26 into AOS-feature/mindmap Nov 20, 2023
2 checks passed
@jaehan4707 jaehan4707 deleted the AOS-feature/mindmap-text branch November 23, 2023 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📱AOS 안드로이드 작업 💡Feature 기능 개발 🎨UI UI 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants