Forked from SpiritOfDarkDragon/Disable auto-scroll after load
Created
February 23, 2019 21:22
-
-
Save danielemaddaluno/a7ce4a76553d9f6b3c018c5e827f35b1 to your computer and use it in GitHub Desktop.
Disabling auto-scroll scrollview, after data in webview is loaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Adding the "descendantFocusability" attribute to the ScrollView's containing LinearLayout, with the value "blockDescendants". In my case: | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:orientation="vertical" | |
| android:descendantFocusability="blocksDescendants" > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment