I have a view which include another one with the “include” component (see http://android-developers.blogspot.com/2009/02/android-layout-tricks-2-reusing-layouts.html)
There is some EditText inside the included view.
There is some problems with these EditText :
- I have to tap them 2 times in order to have the keyboard to appear
- if I long press one of the EditText the app freeze and crash (only on my phone – Samsung galaxy S, not on the emulator)
It does not happen if the Edittext are NOT in a <include> tag …
Do you have any ideas on this problem ??
regards,
Christophe
I have the same problem about long click EditText or TextView crash on Samsung device with Android 4.0 up.
The crash log in here
It’s because when you long click on text, samsung system will select text to highlight
and use onCreateActionMode() to show cut, copy, paste etc button.
If you are in Android 4.0 up,
it will show on ActionBar and use the ActionBar theme style in your app’s style.xml.
And I found my
set minWidth to zero,
cause samsung system calculate action button position resulted
Finally set minWidth to not zero, the problem solved.