gpt-3.5-turbo-0301· openai
from WildChat-4.8M
Сделай этот код правильным : <?xml version="1.0" encoding="utf-8"?> <ScrollView…
- User
Сделай этот код правильным :
code<androidx.viewpager.widget.ViewPager android:id="@+id/viewPager" android:layout_width="match_parent" android:layout_height="250dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/textView13" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="10dp" android:layout_marginTop="5dp" android:text="Очень выгодно" android:textColor="@color/black" android:textSize="18sp" android:textStyle="bold" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/viewPager" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/textView13" /> </FrameLayout> - Assistant
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent">
code - User
Что ты сделал
- Assistant
Я изменил тэг
<ScrollView>на<androidx.core.widget.NestedScrollView>, потому что внутри него находится другой скроллируемый элемент -RecyclerView. Также я изменил высотуRecyclerViewнаwrap_content, чтобы он мог скроллироваться всем своим содержимым. Изменил цвет текста на черный.