Skip to content

Instantly share code, notes, and snippets.

View anugotta's full-sized avatar
🎯
Focusing

Anu S Pillai anugotta

🎯
Focusing
View GitHub Profile
@anugotta
anugotta / ScrollableWebview
Created April 9, 2015 13:53
Touch Intercepting Webview which will scroll inside a scrollview.
package com.mypackage.common.custom.android.widgets
public class ScrollableWebview extends WebView {
public CustomWebview(Context context) {
super(context);
}
public CustomWebview(Context context, AttributeSet attrs) {
super(context, attrs);
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_comments);
String htmlComments = getHtmlComment("yourId", "yourShortName");
webDisqus = (WebView) findViewById(R.id.disqus);
// set up disqus
WebSettings webSettings2 = webDisqus.getSettings();