瀏覽代碼

[마이][Common] 버킷리스트 화면에서 베스트 버킷 클릭시 키보드 자동으로 올라오게 수정

Hasemi 7 年之前
父節點
當前提交
c1e448b3b6

+ 5 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/my/bucketlist/AddMyBucketListFragment.java

@@ -1,5 +1,6 @@
 package kr.co.zumo.app.lifeplus.view.screen.my.bucketlist;
 
+import android.content.Context;
 import android.os.Bundle;
 import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
@@ -10,6 +11,7 @@ import android.text.TextWatcher;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
+import android.view.inputmethod.InputMethodManager;
 import android.widget.Button;
 import android.widget.EditText;
 import android.widget.ImageView;
@@ -60,6 +62,9 @@ public class AddMyBucketListFragment extends FragmentBase<AddMyBucketListPresent
     imageViewBackground = findViewById(R.id.image_background);
 
     editTextMyBucketTitle.requestFocus();
+    InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
+    inputMethodManager.showSoftInput(editTextMyBucketTitle, InputMethodManager.SHOW_IMPLICIT);
+
     editTextMyBucketTitle.addTextChangedListener(new TextWatcher() {
       @Override
       public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {