this how edit text looks. stretches text , adds unwanted space between words
this text in strings.xml:
<string name="type_msg">type message...</string>
and layout xml code:
<edittext android:id="@+id/chat_message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerhorizontal="true" android:layout_centervertical="true" android:clickable="false" android:scrollbarstyle="outsideoverlay" android:background="@drawable/chat_text_box_corners" android:maxlines="4" android:minlines="1" android:scrollbars="vertical" android:hint="@string/type_msg" android:paddingtop="7dp" android:paddingbottom="7dp" android:paddingleft="10dp" android:paddingright="10dp" android:layout_margintop="15dp" android:layout_marginbottom="15dp" android:layout_marginright="7dp" android:layout_marginleft="7dp" android:textappearance="?android:attr/textappearancesmall" android:textcolor="@color/gray_text" android:layout_toleftof="@id/send_message" android:layout_torightof="@id/call_btn" />
it acts same when type:
there settext
attribute in android used horizontal scaling oftext
..accordingly adjust text.
check link: http://developer.android.com/reference/android/widget/textview.html#attr_android:textscalex
Comments
Post a Comment