Limit text length in a line EditText Android
<p>How to limit number of character in a line with multi-line EditText in android 
I am doing like this by this is not allowing multiline</p>

<pre><code>  &lt;EditText
        android:id="@+id/MsgText"
        android:layout_width="0dp"
        android:layout_height="fill_parent"
        android:layout_margin="5sp"
        android:layout_weight="1"
        android:background="@drawable/message_field"
        android:inputType="textMultiLine"
        android:maxLength="10"
        android:padding="5sp"
        android:hint="Type a Message"
        android:textColor="@color/textFieldColor" /&gt;
</code></pre>