Certain solutions will be available that work several times, and sometimes not what I use will work and will process your script. Use the following steps step by step.
1- Add a scroll view to the layout inside the main layout
2- get the link
3 now use the following code snippet
editTextField.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { // TODO Auto-generated method stub v.postDelayed(new Runnable() { @Override public void run() { // TODO Auto-generated method stub /*if(Build.VERSION.SDK.equals("4.1.1")||Build.VERSION.SDK.equals("4.1.2")) { } else {*/ scrollView.scrollBy(0, 150); //} } }, 500); } });
when an overlay is required on the screen, it will scroll the screen
source share