开发者

problem with making edittext scrollable

i am using an edittext in my application.this is set as focusable=false.but i want to make it automatically scrollabe when a big value is displaying..plz help me.given below is my code snippett

 <EditText android:text="" 
    android:hint="0"
    android:textColor="#3232CC"
    android:textStyle="bold"
    android:focusable="false"
   android:layout_marginLeft="45dip"
    android:editable="false"
     android:textSize="14dip"
   android:layout_toRightOf="@+id/netreturn"
   android:layout_below="@+id/totalinvestvalue"
    android:id="@+id/netreturnvalue" 
    android:layout_width="150开发者_运维问答dip" 
    android:layout_height="40dip" 
    android:singleLine="true"
    android:gravity="right" 
    android:isScrollContainer="true" 
    android:scrollHorizontally="true"></EditText>


Remove android:singleLine="true" and you will be able to scroll horizontally.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜