Created
April 15, 2015 12:14
-
-
Save SpiritOfDarkDragon/b32e38dcf85e24d73929 to your computer and use it in GitHub Desktop.
Disabling auto-scroll scrollview, after data in webview is loaded
This file contains 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" > |
You are Awesome. Big Thanks.
Saved my hours of R&D, excellent solution. Thanks,
I found a similar issue,in same cases,webview will scroll slowly or auto scroll back when set View.LAYER_TYPE_SOFTWARE for webview like follow:
webview.setLayerType(View.LAYER_TYPE_SOFTWARE, null)
I used FrameLayout as the parent instead of LinearLayout. That worked!
Great! Good job
nice !
Thanks, this helps me so much
Good thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks you!