After several days I’ve found a solution to the problem. You just need to add the descendantFocusability
in the first layout under the ScrollView
like this:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/lay_account"
android:descendantFocusability="blocksDescendants">