Android: Spaces not going to new line at the end of EditText line -


i have multiline edittext.

whenever input text reaching maximum width, line breaks , text moving next line.

however, isn't working spaces. when there input "blabla" , lots of spaces, line not breaks , text being pushed left until "goes out" of edittext.

how can treat spaces "regular" characters work?

thanks!

<edittext         android:id="@+id/edit_text"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_gravity="center"         android:gravity="center"         android:inputtype="textmultiline|textcapsentences|textnosuggestions"/> 

if don't horizonal scrolling on trailing spaces, think have give android:gravity="center". causing scrolling. tried adding android:scrollhorizontally="false", had no effect. couldn't find way stop scrolling when center gravity specified.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -