I have a scrollview and in side the scrollview linear layout
and I adding dynamically edittext and I want the scroll to be at bottom
but sv.scrollTo(0, sv.bottom) not working
Can anyone tell me how to do this with a nested scrollview?
When i put sv.FullScroll(FocusSearchDirection.Down);
it says it cannot convert focussearchdirection.Down to int.
Posts
somebody?
Try
I am not using listview, only scrollview and inside linearLayout
Ah thats right.
It should work, however you must do it from the UI thread. So in some cases you need to wrap it in
RunOnUiThread()
view.Bottom always return 0 even there is items, and the scroll apear
Where exactly do you do this? In what part of your code?
in onResume
anybody? I tried every thing and it just not working
ok after a lot of hours searching in google this is what worked fo me
``
``
Thanks for posting your solution, just saved me a lot of googling
It worked like charm @nahumglik...
Thanks a lot...
I have this working, i.e.
protected void ScrollToBottom()
{
ScrollView sv = (ScrollView)FindViewById (Resource.Id.scrollView1);
RunOnUiThread(() =>
{
sv.Post(new Java.Lang.Runnable(scrollit));
});
}
But ideally, I would like just to have one method and not hard code the ScrollView resource. How can I pass data to scrollit?
Can anyone tell me how to do this with a nested scrollview?
When i put sv.FullScroll(FocusSearchDirection.Down);
it says it cannot convert focussearchdirection.Down to int.
Any help would be greatly appreciated