Add Multi line to Edit Text

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Add Multi line to Edit Text

Postby venkatraman7 » Tue Aug 27, 2013 2:59 pm

Hi All,
My query may be look very easy but it is frustating me for some time. I need to add muli line option to a edit text. I tried different properties like
inputType,lines,maxlines,showSingleLine
but nothing worked me. If I type some sample text in the layout it is working!!! but not for image button key press. Below is my layout
Code: Select all
<EditText
                android:id="@+id/digits"
                android:layout_width="240dp"
                android:layout_height="67.0dip"
                android:layout_weight="0.86"
                android:cursorVisible="false"
                android:background="@drawable/contacts_dial_background_dial_holo_dark"
                android:editable="true"
                android:focusableInTouchMode="false"
                android:focusable="false"
                android:freezesText="true"
                android:gravity="center"
                android:lines="5"
                android:singleLine="false"
                android:scrollHorizontally="true"
                android:textColor="@color/White"
                android:textSize="33sp" />


I am not setting the values to edit text, rather value is set by default through image button onKeyPress listener.

What could be wrong over here..

Regards
Venkat
venkatraman7
Developer
Developer
 
Posts: 41
Joined: Tue Nov 16, 2010 6:47 am
Location: Puducherry

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 12 guests