ScrollView disable focus move

后端 未结 10 703
野性不改
野性不改 2020-12-14 16:36

I have a simple input form; it\'s a vertical LinearLayout with EditTexts inside a ScrollView.



        
10条回答
  •  我在风中等你
    2020-12-14 17:21

    Try to cut the problem from the source (edit: i.e. move it to an XML file).

    First, there must be a focusable element for that to happen. Make all focusable elements contained in that scroll into non-focusable elements. Make them focusable after the view is inflated and is visible.

    android:focusable="false"
    android:focusableInTouchMode="false"
    

提交回复
热议问题