里面ExpandableListView EditTexts [英] EditTexts inside ExpandableListView

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

问题描述

你好,我试图让显示的ExpandableListView如图中所示的活动。

Hi I'm trying to make an activity that displays an ExpandableListView as shown in the figure.

当你点击它展开并显示与一个TextView和editext一个LinearLayout中的组。

When you click on the group it expands and shows a LinearLayout with a textview and an editext.

右键知道我的问题是,当上的EditText点击它不会获得焦点,我必须以使其获得焦点,并显示键盘上两次挖掘,然后当我进入我的文字什么也看不到,而最初我打字,然后当我隐藏的EditText与我键入的文本更新键盘

Right know the problem I have is that when a click on the EditText it doesn't get focus and I have to tap twice on it in order to make it get focus and display the keyboard, and then when I enter text I see nothing initially while I'm typing and then when I hide the Keyboard the EditText is updated with the text I typed

我已经尝试添加机器人:descendantFocusability =afterDescendants到expandableListVie布局,但该行为是相同的。

I've tried adding android:descendantFocusability="afterDescendants" to the expandableListVie layout, but the behaviour is the same.

任何想法?或者我可以实现这个布局?任何其他方式

Any Idea?? or any other way I could implement this layout??

推荐答案

这添加到Android之后清单权:在您的活动名称

add this to the manifest right after the android:name in your activity

 android:windowSoftInputMode="adjustPan"

这篇关于里面ExpandableListView EditTexts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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