changeset 2843:bacac2eb1677

Android: Fix container rows not being selectable in DW_CONTAINER_MODE_MULTI mode. Due to the addition of buttons in multi-line mode, them taking focus prevents interaction with the row they are contained in. So we block descendant focus on the stack (LinearLayout) they are contained in. https://issuetracker.google.com/issues/36908602
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 16 Sep 2022 20:23:25 +0000
parents 22dd09e90112
children 1df137a1a4b9
files android/DWindows.kt
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/android/DWindows.kt	Fri Sep 16 08:33:28 2022 +0000
+++ b/android/DWindows.kt	Fri Sep 16 20:23:25 2022 +0000
@@ -2276,6 +2276,7 @@
         lp = RelativeLayout.LayoutParams(match, wrap)
         stack.id = View.generateViewId()
         stack.orientation = LinearLayout.HORIZONTAL
+        stack.descendantFocusability = LinearLayout.FOCUS_BLOCK_DESCENDANTS
         lp.addRule(RelativeLayout.BELOW, imageview.id);
         lp.addRule(RelativeLayout.BELOW, text.id);
         this.addView(stack, lp)