Rusty Well-Known Member Licensed User Longtime User Jan 10, 2020 #1 In this post (post #10), CanalRun indicated that the XML for an EditText could be edited to allow a scrollbar to be shown on edittexts. Does anyone know how to edit the XML and where it is? Thanks Rusty
In this post (post #10), CanalRun indicated that the XML for an EditText could be edited to allow a scrollbar to be shown on edittexts. Does anyone know how to edit the XML and where it is? Thanks Rusty
DonManfred Expert Licensed User Longtime User Jan 10, 2020 #2 Rusty said: In this post (post #10), CanalRun indicated that the XML for an EditText could be edited to allow a scrollbar to be shown on edittexts. Click to expand... canalrun said: The response seemed to say that a res XML file needs to be modified to include a vertical scrollbar in the EditText object: http://stackoverflow.com/questions/6555986/android-how-to-set-scrollbar-in-edittext But, modifying res XML files is beyond my capability. Hopefully someone can confirm and describe how this is done. Click to expand... Rusty said: Does anyone know how to edit the XML and where it is? Click to expand... Are you developing with Android Studio and it´s layouts? Using b4a there is NO XML file involved which you could edit I don´t know if you can set the properties using javaobject at runtime. Upvote 0
Rusty said: In this post (post #10), CanalRun indicated that the XML for an EditText could be edited to allow a scrollbar to be shown on edittexts. Click to expand... canalrun said: The response seemed to say that a res XML file needs to be modified to include a vertical scrollbar in the EditText object: http://stackoverflow.com/questions/6555986/android-how-to-set-scrollbar-in-edittext But, modifying res XML files is beyond my capability. Hopefully someone can confirm and describe how this is done. Click to expand... Rusty said: Does anyone know how to edit the XML and where it is? Click to expand... Are you developing with Android Studio and it´s layouts? Using b4a there is NO XML file involved which you could edit I don´t know if you can set the properties using javaobject at runtime.
Erel B4X founder Staff member Licensed User Longtime User Jan 10, 2020 #3 If you want the scroll bars to always appear: https://www.b4x.com/android/forum/threads/edittext-scroll.58474/post-368164 Upvote 0
If you want the scroll bars to always appear: https://www.b4x.com/android/forum/threads/edittext-scroll.58474/post-368164
Rusty Well-Known Member Licensed User Longtime User Jan 10, 2020 #4 Definitely using B4a. I'll try Erel's suggestion and report back... Thanks! Upvote 0
Rusty Well-Known Member Licensed User Longtime User Jan 10, 2020 #5 OK, the post Erel mentioned is the one that blows up as per all the comments. Is there a way to make that work? Upvote 0
OK, the post Erel mentioned is the one that blows up as per all the comments. Is there a way to make that work?
Erel B4X founder Staff member Licensed User Longtime User Jan 12, 2020 #6 You are correct, it doesn't work with material theme. If you don't need the text to be editable then use xCLV.AddText instead of EditText. Upvote 0
You are correct, it doesn't work with material theme. If you don't need the text to be editable then use xCLV.AddText instead of EditText.