一些三星设备有限公司的EditText? [英] Limited edittext on some samsung devices?

查看:141
本文介绍了一些三星设备有限公司的EditText?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想读从SD卡长文本在Android的一个EditText。 在几乎所有的设备,这个作品非常好,除了一些三星设备。当我尝试读什么了10KB的字符串,我也看看它获得了整个文件。当我尝试这在10KB添加到它的EditText切断。即使我把它在一个循环中尝试添加一点点在与追加的时候它仍然不增加超过10KB。

I am trying to read a long text from the sdcard to an edittext in Android. On almost all devices this works very well, except for some samsung devices. When I try to read anything over 10kb the string I read it too gets the whole file. When I try to add this to the edittext its cut off at 10kb. Even if I put it in a loop trying to add a little bit at the time with append it still doesn't add more than 10kb.

在每一个电话我也试过这个工程,在HTC的,索尼爱立信,承上启下的手机,但没有任何的Galaxy S的......手机可以做到这一点。

On every phone I have tried this works, on HTCs, Sony Ericssons, the nexus phones, but none of the Galaxy S... phone can do it.

会发生这种情况给任何人? 有没有解决办法?

Has this happened to anyone else? Is there a workaround?

推荐答案

10分钟网络上发布这一问题的第20次没有任何结果之后,我觉得我自己!

10 minutes after posting this question for the 20th time on the web without any answers I find it myself!

在您的布局文件,在EditText上,添加机器人:最大长度=一些高价值和它的作品

In your layout file, in the EditText, add android:maxLength="some high value" and it works!

有趣的是,大多数其他设备不来限制,而一些三星手机一样为EditText上!

Interesting that most other devices don't come with a limit while some Samsung phones does for the edittext!

这篇关于一些三星设备有限公司的EditText?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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