Skip to content

Instantly share code, notes, and snippets.

@SpiritOfDarkDragon
Created April 15, 2015 12:14
Show Gist options
  • Save SpiritOfDarkDragon/b32e38dcf85e24d73929 to your computer and use it in GitHub Desktop.
Save SpiritOfDarkDragon/b32e38dcf85e24d73929 to your computer and use it in GitHub Desktop.
Disabling auto-scroll scrollview, after data in webview is loaded
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" >
@ZaccharieBOUVY
Copy link

nice !

@anandabayu
Copy link

anandabayu commented Jan 27, 2020

Thanks, this helps me so much

@MananHamza
Copy link

Good thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment