开发者

Android ScrollTo View

开发者 https://www.devze.com 2023-04-04 08:08 出处:网络
I have a Layout where the开发者_开发百科re is a EditText at 75% position from top of the view and when it gets focused the keyboard is shown and the EditText automatically moves up. I want to ask what

I have a Layout where the开发者_开发百科re is a EditText at 75% position from top of the view and when it gets focused the keyboard is shown and the EditText automatically moves up. I want to ask what this behaviour is called and how can I reproduce this by code even without it's focused? Is there a way to do that without using ScrollView?

UPDATED

What I want is to show name suggestions as user types in EditText. As this is EditText, the keyboard would be shown and EditText has to be at x=0 and y=0 to have enough space for suggestions ListView so user can pick one.


public void scrollTo (int x, int y)

also see smoothscroll

0

精彩评论

暂无评论...
验证码 换一张
取 消