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

[FEAT] 코스 그리기 / 코스 제목 입력 후 키보드 내리기 #279

Merged
merged 3 commits into from
Nov 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.runnect.runnect.presentation.draw

import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Color
Expand All @@ -11,6 +12,7 @@ import android.view.View
import android.view.ViewGroup
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import android.view.inputmethod.InputMethodManager
import android.widget.Toast
import androidx.activity.viewModels
import androidx.core.content.FileProvider
Expand Down Expand Up @@ -311,6 +313,9 @@ class DrawActivity :
}

btnCreateCourse.setOnClickListener {
val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.hideSoftInputFromWindow(etCourseName.windowToken, 0)

Copy link
Member

Choose a reason for hiding this comment

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

기존에 구현되어 있는 hideKeyboard 라는 확장 함수 이용하면 더 좋을 거 같습니다!

그리고 실행 결과 보니까 키보드 뿐만 아니라 바텀 시트 자체가 dismiss 되는 게 좋을 거 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵! 말씀해주신 두 항목 다 반영해서 커밋 올렸습니다!

createMbr()
}

Expand Down
Loading