Here the script is conceptual (excluding linearlayouts)
ScrollView Button Checkboxes Spinner ListView (full-size, non-scrolling) AdMob advert
i.e. a scroll bar that has a UI filter at the top and then results, but the ad should always remain visible, and when scrolling, the filter user interface should scroll, leaving maximum space for the results.
I know there are problems with the ListView inside the ScrollView, although for me it works well in many ways (I fix the length of the ListView to stop it from folding). Thus, the screen scrolls beautifully, the ad remains at the bottom, and it looks good.
But the problem that I see is inexplicable when the activity opens, ScrollView scrolls a bit, so the ListView is at the top of the screen. I assume this is the default behavior, so I started trying to get the ScrollView position scroll at the top, but I tried various methods and didn't see any effect:
scrollview.scrollTo(0, 1000/-1000); scrollview.smoothScrollBy(0, 1000/-1000); scrollview.fullScroll(View.FOCUS_UP);
Is there a way to get ScrollView to start from the scroll position at the top?
If not, how can I get an ad that doesn't scroll down, but a filter user interface that always scrolls from the top? Using a ListView seems redundant since I don't need scrolling, but it has many advantages, so it would be nice to avoid starting from scratch and doing everything yourself.
android
Ollie c
source share