选择一个列表视图edittexts文本。可如何做呢?我也查不到 [英] Select edittexts text in a listview. How can be done? I can't find out

查看:177
本文介绍了选择一个列表视图edittexts文本。可如何做呢?我也查不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有每行工作的一个EditText一个ListView。

I have a ListView with an EditText on each row working.

我需要选择点击的EditText写号没有删除或移动光标这个文本。

I need to select this text on click the edittext to write numbers without erasing or moving the cursor.

使用selectAllonfocus的第一部作品。然而,滚动列表视图之后,得到的EditText疯狂和选择工作不正常。

Using selectAllonfocus at first works. However, after scrolling the listview, the EditText got crazy and selection doesn't work correctly.

如果我在听者的onfocus执行全选,然后当触摸时作出的文本菜单(选字,全选,等等)显示,而不是选择。

If I execute selectAll in the listener onFocus, then when a touch is made the contextmenu (select word, select all,etc) is shown instead of the selection.

如果有人可以提供帮助。

If someone can help.

感谢。

推荐答案

我能说什么,我问的是,试图选择列表视图edittexts的所有文字无法正常工作。 因此,而不是选择文本,我将展示在用户选择的号码或任何一个对话框。

What I can say about what I asked is that trying to select all text of the listview edittexts don't work properly. So instead of select the text, I show a dialog where the user selects the number or whatever.

这篇关于选择一个列表视图edittexts文本。可如何做呢?我也查不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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