Is a vertical scrollbar for the Edittext view available?

fredo

Well-Known Member
Licensed User
Longtime User
The concept of multiline in Edittext is clear.
Automatic an manual scrolling of a text larger than the view's height is working.

What I'm looking for is, that the user sees a vertical scrolling bar at the right edge of the view so that the relative position of the cursor to the whole content is noticable.

I've found a solution here, but don't know how to implement it in B4A.


Regards,
fredo
 
Last edited:
Upvote 0

fredo

Well-Known Member
Licensed User
Longtime User
Yes, the text needs to be editable...


What's with the code mentioned here?

B4X:
<EditText android:id="@+id/edt_task_disc" android:layout_width="wrap_content"
                      android:layout_height="wrap_content"  android:gravity="top"
                      android:background="@drawable/text_aerea" 
                      ...
                      android:scrollbars="vertical"
                      />
The proposed solution is "Please add android:scrollbars="vertical" to your xml code of edit text"


What do I have to do in the B4A World?


Best regards,
fredo
 
Upvote 0
Top