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
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