L Lon Member Licensed User Longtime User Jun 15, 2012 #1 Just tried my program on the Nexus. I have three EditText (input type: None, Enabled: False) views filled with text that exceeds the EditText height. On all the other devices I've tested on I can just slide the text up and down to view it all. With the Nexus the text will not scroll. Does anyone else have this problem? Is there anything I can do to work around that? If I change the views to Enabled: True, it will scroll but then the text becomes editable. Last edited: Jun 15, 2012
Just tried my program on the Nexus. I have three EditText (input type: None, Enabled: False) views filled with text that exceeds the EditText height. On all the other devices I've tested on I can just slide the text up and down to view it all. With the Nexus the text will not scroll. Does anyone else have this problem? Is there anything I can do to work around that? If I change the views to Enabled: True, it will scroll but then the text becomes editable.
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2012 #2 They might have change the behavior when the EditText is disabled. I recommend you to use ScrollView with a Label. You can find the required height with StringUtils.MeasureMultilineTextHeight. Upvote 0
They might have change the behavior when the EditText is disabled. I recommend you to use ScrollView with a Label. You can find the required height with StringUtils.MeasureMultilineTextHeight.
R Roger Garstang Well-Known Member Licensed User Longtime User Jun 15, 2012 #3 The behavior was changed. Search here for setFocusableInTouchMode and you will find some threads that may help. You could try overriding the behavior and allowing Touch to keep your scrolling. Upvote 0
The behavior was changed. Search here for setFocusableInTouchMode and you will find some threads that may help. You could try overriding the behavior and allowing Touch to keep your scrolling.
L Lon Member Licensed User Longtime User Jun 18, 2012 #4 Thanks. I applied this to each of my EditText views and it works great now! Code: obj1.RunMethod2("setFocusable", "False", "java.lang.boolean") Upvote 0
Thanks. I applied this to each of my EditText views and it works great now! Code: obj1.RunMethod2("setFocusable", "False", "java.lang.boolean")