Android webview scroll and facebook comments problem when Admob loads advert

The Scrolling Problem

The Scrolling Solution

android:descendantFocusability="blocksDescendants"

The Facebook Comments Problem

The Facebook Comments Solution

adView.setAdListener(new AdListener(){
@Override
public void onAdLoaded() {
super.onAdLoaded();
myScrollView.setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS);
}
});

Bonus

--

--

MSc Computer Science. — Software engineer and programming instructor. Actively involved in Android Development and Deep Learning.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ioannis Anifantakis

Ioannis Anifantakis

MSc Computer Science. — Software engineer and programming instructor. Actively involved in Android Development and Deep Learning.