如何才能重新获得焦点在编辑文本重新加载时扩展列表...? [英] how to regain focus on a edit text when expandable list is reloaded...?

查看:160
本文介绍了如何才能重新获得焦点在编辑文本重新加载时扩展列表...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我加载在这两个组和子视图自定义布局一个ExpandableListView。

I have a ExpandableListView in which i am loading custom layouts in both group and child views.

他们有一些编辑文本字段。

They are having some edit text fields.

当我在编辑文本单击时,出现软键盘,当时的名单被重新装载,但重点将不会在编辑文本。

When i click on the edit text, the soft keyboard appears, that time the list is reloaded, but focus will not be on the edit text.

因此​​我打字输入未在编辑文本输入。

As a result the input i am typing is not entered in that edit text.

如果我在编辑文本再次点击,我可以输入值。

If i clicked on the edit text again i can enter the values.

不过,我想,即使重装列表视图后,重新获得它的焦点。

But I want to regain its focus even after reloading the list view.

我试图与存储最后单击视图,它临时变量, requestFocus()方法存储上重装,但它不工作。

I tried with storing the last clicked view and storing it in temporary variable, requestFocus() on reloading, but its not working.

如何做到这一点..?

How to achieve this..?

下面是一个屏幕截图。

如果任何人有一个想法,请帮助我..!

If anybody have an idea please help me..!

先谢谢了。

推荐答案

管理SoftInput键盘为您的活动。

Manage the SoftInput Keyboard for your activity.

看看机器人:windowSoftInputMode

这篇关于如何才能重新获得焦点在编辑文本重新加载时扩展列表...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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