• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

View.Visibility(VISIBLE)

Hi.
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.
 
Back
Top Bottom