Android how to set ScrollBar in Edittext? -


i new android want scrolltext in edittext , show scrollbar @ corner.i scroll thetext using

questionentry.setscroller(new scroller(mycontext));  questionentry.setmaxlines(1);  questionentry.setverticalscrollbarenabled(true);  questionentry.setmovementmethod(new scrollingmovementmethod());  

scr0lling of text works scrollbar doesnot visible can give me sugesstion?

this may you.

<edittext android:id="@+id/edt_task_disc" android:layout_width="wrap_content"                       android:layout_height="wrap_content"  android:gravity="top"                       android:background="@drawable/text_aerea"                        android:hint="task discription"                       android:textsize="15sp" android:paddingleft="5dp"                       android:maxheight="35dp"                       android:scrollbars="vertical"                       /> 

please add android:scrollbars="vertical" xml code of edit text, , work fine.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -