我在 Android 4.2 上运行以下布局当在单个 LinearLayout 中有按钮时,一切运行正常:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
>
<Button
style="@style/auth_primary_button_split"
android:id="@+id/startup_login"
android:text="@string/login_label"
/>
<Button
style="@style/auth_primary_button_split"
android:id="@+id/startup_signup"
android:text="@string/signup_label"
/>
</LinearLayout>
但是,当将相同的 LinearLayout 包装到 ScrollView 中时,按钮点击会延迟(按钮背景状态、onClick 功能等)。
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
...
</ScrollView>
这是 Android 4.2 中的一个已知问题吗?