problem with making edittext scrollable

て烟熏妆下的殇ゞ 提交于 2019-12-25 14:46:11

问题


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:


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



来源:https://stackoverflow.com/questions/6250041/problem-with-making-edittext-scrollable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!