0
我有一个问题,可以这样呈现:我有一个RelativeLayout
填充屏幕,并在其内部Button
。在这个布局下,我有另一个Button
(这就像层结构)。如何使布局不可聚焦? (multitouch)
<Button android:layout_marginLeft="133dp" id="button_single"/>
<RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent">
<Button id="button_inside"/>
</RelativeLayout>
当我按住鼠标左键button_inside
它给人的重点布局,因此button_single
是没有更多的点击。
如何禁用布局可聚焦能力?
预先感谢您
注:在现实中,在我的项目中,button_single是GLSurfaceView
填充屏幕,但问题是相同的。
添加
在xml文件我已经试过已位于,它不工作......我认为解决的办法确实是一些具体的事情,因为我已经看了好几个小时: -/ 其实我已经与所有这些尝试:'机器人:可点击= “假”' \t'机器人:descendantFocusability = “afterDescendants”' \t'机器人:duplicateParentState = “假”' \t'机器人:可调焦=“假” \t'android:focusableInTouchMode =“false”' \t'android:longClickable =“false” – 56ka