Back to project page holoreader.
The source code is released under:
GNU General Public License
If you think the Android project holoreader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.hdodenhof.holoreader.misc; // w ww.j a va2 s . c o m import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.webkit.WebView; import android.widget.ScrollView; public class CustomScrollView extends ScrollView { public CustomScrollView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public CustomScrollView(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollView(Context context) { super(context); } /** * Prevent WebView from getting focus */ @Override public void requestChildFocus(View child, View focused) { if (focused instanceof WebView) { return; } else { super.requestChildFocus(child, focused); } } }