xml - Android EditText not showing multilines -
i reading data file buffer , storing string. loading same string setext edittext component. knowing multiple lines displaying entire file single line. xml file below:
<scrollview android:id="@+id/scrollview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_aligntop="@+id/btnlogclear" android:layout_torightof="@+id/btnemaillog" > <linearlayout android:layout_width="match_parent" android:layout_height="224dp" android:orientation="vertical" > <edittext android:id="@+id/editlog" android:layout_width="wrap_content" android:layout_height="177dp" android:ems="10" android:enabled="false" android:gravity="left|top" android:inputtype="textmultiline" android:scrollbars="vertical" android:scrollhorizontally="false" > <requestfocus /> </edittext> </linearlayout> </scrollview>
it still showing single line.
any clues solve issue.
abhimoh
use
android:layout_height="wrap_content"
for linearlayout and
android:layout_height="wrap_content"
for edittext
Comments
Post a Comment