Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] windowSoftInputMode not working inside scrollView android

Posted on November 14, 2022

Solution 1 :

Define id appBarLayoutBack to include tag like:

  <include
    android_id="@+id/appBarLayoutBack"
    layout="@layout/app_bar_layout_back" />

Or whichever you want to set this.
You set toptobottom id ‘appBarLayoutBack’ this one. which doesn’t exist in your layout thats the reason it is not showing scrollview data.

Problem :

My keyboard is hiding EditTexts. I have tried adjustPan, adjustResize, changing ScrollView size… and other things from questions like this Android Keyboard hides EditText, but I think is something related with ScrollView inside ConstraintLayout.

    <androidx.constraintlayout.widget.ConstraintLayout xmlns_android="http://schemas.android.com/apk/res/android"
    xmlns_app="http://schemas.android.com/apk/res-auto"
    xmlns_tools="http://schemas.android.com/tools"
    android_layout_width="match_parent"
    android_layout_height="match_parent"
    tools_context="feature_my_zone.presentation.profile.addresses.editadd.EditAddAddressFragment">

    <include layout="@layout/app_bar_layout_back" />

    <TextView
        android_id="@+id/btnAdd"
        style="@style/text_medium_white_17"
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_layout_margin="@dimen/padding_16"
        android_text="@string/btn_add"
        app_layout_constraintEnd_toEndOf="parent"
        app_layout_constraintTop_toTopOf="parent" />

    <ScrollView
        android_layout_width="match_parent"
        android_layout_height="0dp"
        app_layout_constraintBottom_toBottomOf="parent"
        app_layout_constraintTop_toBottomOf="@+id/appBarLayoutBack">

        <androidx.constraintlayout.widget.ConstraintLayout
            android_layout_width="match_parent"
            android_layout_height="wrap_content"
            android_padding="@dimen/padding_16">

            <TextView
                android_id="@+id/tvTitle"
                style="@style/text_medium_white_34"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_16"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toTopOf="parent" />

            <TextView
                android_id="@+id/lblName"
                style="@style/text_regular_white_17"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_24"
                android_text="@string/lbl_name"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/tvTitle" />

            <EditText
                android_id="@+id/tvName"
                style="@style/text_regular_gray_ghost_15"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_12"
                android_paddingStart="0dp"
                android_paddingTop="0dp"
                android_paddingEnd="0dp"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/lblName" />

            <TextView
                android_id="@+id/lblZip"
                style="@style/text_regular_white_17"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_24"
                android_text="@string/lbl_zip"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/tvName" />

            <EditText
                android_id="@+id/tvZip"
                style="@style/text_regular_gray_ghost_15"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_12"
                android_paddingStart="0dp"
                android_paddingTop="0dp"
                android_paddingEnd="0dp"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/lblZip" />

            <TextView
                android_id="@+id/lblLocation"
                style="@style/text_regular_white_17"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_24"
                android_text="@string/lbl_location"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/tvZip" />

            <EditText
                android_id="@+id/tvLocation"
                style="@style/text_regular_gray_ghost_15"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_12"
                android_paddingStart="0dp"
                android_paddingTop="0dp"
                android_paddingEnd="0dp"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/lblLocation" />

            <TextView
                android_id="@+id/lblProvince"
                style="@style/text_regular_white_17"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_24"
                android_text="@string/lbl_province"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/tvLocation" />

            <EditText
                android_id="@+id/tvProvince"
                style="@style/text_regular_gray_ghost_15"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_12"
                android_paddingStart="0dp"
                android_paddingTop="0dp"
                android_paddingEnd="0dp"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/lblProvince" />

            <TextView
                android_id="@+id/lblAddress"
                style="@style/text_regular_white_17"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_24"
                android_text="@string/lbl_address"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/tvProvince" />

            <EditText
                android_id="@+id/tvAddress"
                style="@style/text_regular_gray_ghost_15"
                android_layout_width="wrap_content"
                android_layout_height="wrap_content"
                android_layout_marginTop="@dimen/padding_12"
                android_paddingStart="0dp"
                android_paddingTop="0dp"
                android_paddingEnd="0dp"
                app_layout_constraintStart_toStartOf="parent"
                app_layout_constraintTop_toBottomOf="@+id/lblAddress" />

        </androidx.constraintlayout.widget.ConstraintLayout>

    </ScrollView>

    <ProgressBar
        android_id="@+id/progressBar"
        style="?android:progressBarStyleLarge"
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_visibility="gone"
        app_layout_constraintBottom_toBottomOf="parent"
        app_layout_constraintEnd_toEndOf="parent"
        app_layout_constraintStart_toStartOf="parent"
        app_layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

The layout is showing well

enter image description here

I know there is a lot of questions about this, but still couldn’t find any solution.

READ  [ANSWERED] is it possible to get response of previewed Pdf in Retrofit android?
Powered by Inline Related Posts

Thanks in advance.

Comments

Comment posted by Pablo R.

this is not the problem, the ID is inside this layout and the scrollview data is showing well, I’ll add a picture

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress