problem with making edittext scrollable

2019-08-16 03:20发布

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="150dip" 
    android:layout_height="40dip" 
    android:singleLine="true"
    android:gravity="right" 
    android:isScrollContainer="true" 
    android:scrollHorizontally="true"></EditText>

1条回答
虎瘦雄心在
2楼-- · 2019-08-16 04:12

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

查看更多
登录 后发表回答