I have implemented TapTargetView library to my app.
After passing a certain element, I need to focus on the next view which is outside the screen at this moment:
@Override
public void onSequenceStep(TapTarget lastTarget) {
if (lastTarget.id() == 7) {
flavorContainer.setFocusableInTouchMode(true);
flavorContainer.requestFocus();
}
}
Everything was fine, before I added the ad unit at the bottom of the screen. So now the necessary element is displayed behind the ads.
Method requestFocus() scrolls layout only to the necessary view was visible but not to the end of screen.
I need a method that scrolls the contents of the screen to the VERY END, not just what would the necessary view become visible on the screen. Is it possible?
Layout structure
<android.support.design.widget.CoordinatorLayout>
<LinearLayout>
<android.support.v4.widget.NestedScrollView>
<LinearLayout>
<android.support.v7.widget.CardView>
<LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>