Skip to content

Commit

Permalink
#86 fix : 맛집 추가하기 화면 edittext 가리는 문제 해결
Browse files Browse the repository at this point in the history
Co-authored-by: plashdof <[email protected]>
Co-authored-by: BENDENG1 <[email protected]>
  • Loading branch information
3 people committed Dec 11, 2023
1 parent c46a901 commit 2a8918f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Aos/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
</activity>
<activity
android:name=".presentation.ui.intro.IntroActivity"
android:exported="false">
android:exported="false"
android:windowSoftInputMode="adjustPan">
</activity>
<activity
android:name=".presentation.ui.splash.SplashActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ package com.avengers.nibobnebob.presentation.ui.intro

import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.provider.MediaStore
import android.view.MotionEvent
import android.view.inputmethod.InputMethodManager
import androidx.activity.result.contract.ActivityResultContracts
import androidx.activity.viewModels
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import com.avengers.nibobnebob.databinding.ActivityIntroBinding
import com.avengers.nibobnebob.presentation.base.BaseActivity
import com.avengers.nibobnebob.presentation.ui.adjustKeyboard
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down Expand Up @@ -100,4 +104,10 @@ class IntroActivity : BaseActivity<ActivityIntroBinding>(ActivityIntroBinding::i
}
}
}

override fun onTouchEvent(event: MotionEvent?): Boolean {
val imm: InputMethodManager = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.hideSoftInputFromWindow(currentFocus?.windowToken, 0)
return true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ package com.avengers.nibobnebob.presentation.ui.main

import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.provider.MediaStore
import android.view.MotionEvent
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.activity.result.contract.ActivityResultContracts
import androidx.activity.viewModels
import androidx.core.app.ActivityCompat
Expand Down Expand Up @@ -124,4 +127,9 @@ class MainActivity : BaseActivity<ActivityMainBinding>(ActivityMainBinding::infl
}
}
}
override fun onTouchEvent(event: MotionEvent?): Boolean {
val imm: InputMethodManager = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.hideSoftInputFromWindow(currentFocus?.windowToken, 0)
return true
}
}
6 changes: 4 additions & 2 deletions Aos/app/src/main/res/layout/fragment_add_my_restaurant.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@
<androidx.core.widget.NestedScrollView
android:id="@+id/scrollView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_height="0dp"
android:clipToPadding="false"
android:paddingHorizontal="20dp"
android:fillViewport="true"
android:paddingBottom="250dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/layout_toolbar">
app:layout_constraintTop_toBottomOf="@id/layout_toolbar"
app:layout_constraintBottom_toBottomOf="parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down

0 comments on commit 2a8918f

Please sign in to comment.