Android onFocusChanged侦听器未在RelativeLayout上触发
我有很多按钮 我将“button2”包装在相对布局中 然后我为所有其他按钮设置FocusChangedListener和新的包装器RelativeLayout 请注意,RelativeLayout是所有其他按钮的同级 问题在于: onFocusChangedListener未在RelativeLayout上触发, 但它对所有其他兄弟姐妹都很有效Android onFocusChanged侦听器未在RelativeLayout上触发,android,focus,android-relativelayout,Android,Focus,Android Relativelayout,我有很多按钮 我将“button2”包装在相对布局中 然后我为所有其他按钮设置FocusChangedListener和新的包装器RelativeLayout 请注意,RelativeLayout是所有其他按钮的同级 问题在于: onFocusChangedListener未在RelativeLayout上触发, 但它对所有其他兄弟姐妹都很有效 为什么呢?我遗漏了什么吗?将android:focusable=“true”属性设置为RelativeLayout…@Gopal Rao:没有帮助:(
为什么呢?我遗漏了什么吗?将
android:focusable=“true”
属性设置为RelativeLayout
…@Gopal Rao:没有帮助:(