material-code-input icon indicating copy to clipboard operation
material-code-input copied to clipboard

Error when use windowSoftInputMode

Open binemecio opened this issue 3 years ago • 3 comments

We have a error when an Activity contain this property android:windowSoftInputMode="adjustResize"

We can not use it, but when we remove this property this work fine

binemecio avatar Mar 16 '21 22:03 binemecio

Hi, can you elaborate a bit more? For example give a sample project where the issue is reproduced and also details on what "error" you get.

raycoarana avatar Mar 17 '21 08:03 raycoarana

We are using an activity with the property android: windowSoftInputMode = "adjustResize"

The view

<com.raycoarana.codeinputview.CodeInputView
     android: layout_marginTop = "20dp"
     android: layout_width = "wrap_content"
     android: layout_height = "wrap_content"
     app: underline_color = "# 457ad1"
     app: underline_selected_color = "# 9e1ace"
     app: code_text_color = "# b12eff"
     app: error_color = "# 77ce9d"
     app: input_type = "numeric"
     app: length_of_code = "4"
     />

We use it in a fragment within this activity

The problem is when trying to write when we have the focus inside the CodeInputView, apparently a transparent layer is overlay and it does not allow writing.

binemecio avatar Mar 22 '21 23:03 binemecio

There are no layers in the View, it may be loosing the focus or something like that, please if you can create a sample project with the case where you reproduce it and share it, I could debug the problem.

raycoarana avatar Mar 23 '21 07:03 raycoarana