android - Relative Layouts - long Textview overlaps -
i have relative layout includes 2 textviews:
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.example.pris.viewactivity" tools:ignore="mergerootframe"> <textview android:id="@+id/description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/mydes" /> <textview android:id="@+id/tex" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/description" android:text="@string/mytext" /> <autocompletetextview android:id="@+id/textfield" android:layout_width="200dip" android:layout_height="wrap_content" android:layout_below="@+id/tex" android:completionthreshold="1" android:inputtype="text" /> <button android:id="@+id/but" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/suchen" android:layout_torightof="@+id/textfield" android:layout_alignparentright="true" android:onclick="addtolist" /> <button android:id="@+id/but2" android:layout_weight="1.0" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="liste löschen" android:layout_below="@+id/ex" android:onclick="removelist" /> <listview android:id="@+id/ex" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_weight="1.0" android:choicemode="singlechoice" android:layout_below="@+id/but"> </listview> </relativelayout>
i inserted "description" recently, text there quite long - , overlaps below it.
how can change that?
i not want change whole layout if possible, , unfortunately not possible shorten text.
have tried put scrollview above relativelayout?
<scrollview xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> </scrollview>
also, check end of .xml, missing closing tag
Comments
Post a Comment