0

enter image description here

There is a character counter under the pink line, which I would like to see while typing, but it's covered by the keyboard. Everything is inside a scroll view, and the text field scrolls up when focused, but I want to make it "overscroll" - how can we adjust the scroll offset, or whatever it's called?

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:orientation="vertical">
  <EditText
    android:id="@+id/answer_text"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />
  <TextView
      android:id="@+id/length_limit"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:textAlignment="viewEnd"
      android:maxLength="250"/>
</LinearLayout>
alekop
  • 2,838
  • 2
  • 29
  • 47

1 Answers1

0

Look at this link Move layouts up when soft keyboard is shown?

or if you want to change margins check this KeyBoard changing And for implementing that : onResume

GolnazTorabi
  • 50
  • 1
  • 3