与制作的EditText滚动问题 [英] problem with making edittext scrollable

查看:193
本文介绍了与制作的EditText滚动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用我application.this一个EditText设置为可聚焦= false.but我想让它自动scrollabe当一个大值displaying..plz帮助me.given下面是我的code snippett

 <机器人的EditText:文本=
    机器人:提示=0
    机器人:文字颜色=#3232CC
    机器人:文字样式=大胆
    机器人:可聚焦=假
   机器人:layout_marginLeft =45dip
    机器人:编辑=假
     机器人:TEXTSIZE =14dip
   机器人:layout_toRightOf =@ + ID / netreturn
   机器人:layout_below =@ + ID / totalinvestvalue
    机器人:ID =@ + ID / netreturnvalue
    机器人:layout_width =150dip
    机器人:layout_height =40dip
    机器人:单线=真
    机器人:重力=右
    机器人:isScrollContainer =真
    机器人:scrollHorizo​​ntally =真正的>< /&的EditText GT;


解决方案

删除的android:单线=真正的键,你就可以水平滚动。

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>

解决方案

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

这篇关于与制作的EditText滚动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆