EditText fails because in my user group ViewGroup I had
protected void onLayout(boolean changed, int l, int t, int r, int b) { .... child.layout(child.getLeft(), child.getTop(), child.getLeft() + child.getMeasuredWidth(), child.getTop() + child.getMeasuredHeight()); child.setRight(somevalue);
Now itβs clear that I cannot setRight () and setBottom (), but itβs also clear that EditText should not be weird.
Ignore the backspace key.
Accidentally ignore the number keys, but accept the decimal point.
Ignore newLine (Enter) key
Which keys are ignored or not depends on the device. Samsung Tab 4 or the Nexus 5 API 23 X86 emulator are good places to see this.
Bob Lissner Dec 12 '15 at 3:45 2015-12-12 03:45
source share