Federico Desia
Newbie
Hi.
My application displays a list (RelativeLayout) when a EditText is selected.
The problem appears when writing in the EditText. Automatically an edit text located at the top get focus.
My application displays a list (RelativeLayout) when a EditText is selected.
Java:
password.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if(hasFocus){
ShowList();
}
}
});
Java:
private void ShowList(){
List.setVisibility(View.VISIBLE);
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
ScrollViewList.post(new Runnable() {
public void run()
{
ScrollViewList.smoothScrollTo(0, ScrollViewList.getBottom());
}
});
}
},250);
}
The problem appears when writing in the EditText. Automatically an edit text located at the top get focus.