MaterialEditText icon indicating copy to clipboard operation
MaterialEditText copied to clipboard

Keyboard does not appear after some actions (v2.0.3)

Open tral opened this issue 9 years ago • 16 comments

I have MaterianEditText in my Activity1. I call Activity2 from Activity1. After closing Activity2 there is no way to show keyboard when tapping on MaterianEditText (which is placed in Activity1). Keyboard doesn't appear.

tral avatar Apr 23 '15 10:04 tral

Does this happen when you use EditText instead of MaterialEditText?

rengwuxian avatar Apr 26 '15 17:04 rengwuxian

No. I am temporary using EditText instead of MaterialEditText exactly because of this problem. With EditText everything is ok.

tral avatar Apr 26 '15 17:04 tral

Small notice: if you have 2 or more MaterialEditTexts in Activity1, you can tap another one and it works. So, if you have mEt1 and mEt2 in Activity1 and mEt1 is focused , then you show Activity2, close it, mEt1 is still focused but you cannot open keyboard. If you tap on mEt2 - you'll see the keyboard, then tap on mEt1 again - you'll also see the keyborad. But if there is only one MaterialEditText in your Activity - described trick doesn't work.

tral avatar Apr 26 '15 17:04 tral

Clear description. I'll take a look. Thanks.

rengwuxian avatar Apr 26 '15 17:04 rengwuxian

I've the same problem. There's only 1 MaterialEditText in my layout. After going to SettingsActivity and returning, MaterialEditText does not work. No errors that I can see in logcat.

squeeish avatar May 01 '15 10:05 squeeish

Same issue for me. Just leaving a comment to track the issue progress.

mvarnagiris avatar May 08 '15 15:05 mvarnagiris

Same issue for me. How to solve the problem?

ayuhe avatar Jun 03 '15 07:06 ayuhe

Fixed in v2.1.4. I just uploaded it, and it should be synced to Maven Central in several hours.

It's because of the clear button. Thanks to @onewilk for helping me repro this issue on my device in #201 .

rengwuxian avatar Jun 04 '15 03:06 rengwuxian

Hi, Yes I have been verified, it is OK. Thanks.

ayuhe avatar Jun 04 '15 03:06 ayuhe

I'm still experiencing errors with this. I have a single MaterialEditText in a single LinearLayout. Theme base is Theme.Holo, Android 4.4.4, no custom keyboard.

Strangely enough, I can long press and "paste" text into the field. After, if I try and touch the text ADB says: TextView does not support text selection. Action mode cancelled.

The sample app works.

hscissors avatar Jun 11 '15 19:06 hscissors

Same issue here :disappointed: I forked today

akbarsha03 avatar Jun 25 '15 11:06 akbarsha03

@akbarsha03 the problem was that you have to use the AppCompat theme.

hscissors avatar Jun 25 '15 16:06 hscissors

Same issue here! I have the 2.1.4 version

@hscissors you say that AppCompat is the way. Is too bad my entire project is based on Holo theme . So Do you know if they will fix this issue for Holo theme ?

exequielc avatar Aug 20 '15 12:08 exequielc

Add these style into your values -> style :

Add these style into your Activity tag or application tag::

android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen"

daxeshzwt avatar Dec 23 '15 14:12 daxeshzwt

@daxeshzwt I confirm that your solution fixed the problem I got on a Samsung 4.4 👍 😄

lolobosse avatar May 03 '16 13:05 lolobosse

I am facing the same issue and after spending more than 4 hours and I solved the issue by adding this property in the AndroidManifest.xml file. I know it is different but it is working for me in the Samsung device.

android:hardwareAccelerated="true"

aivision369 avatar Sep 11 '19 13:09 aivision369