मेरे पास एक ऐसा फॉर्म है जिसमें लगभग 12/13 फ़ील्ड हैं। मैंने एक बाधा लेआउट के अंदर Scrollview
का उपयोग किया। नीचे एक्सएमएल लेआउट का पदानुक्रम है। समस्या यह है कि, यह केवल पहले शुरुआती 10 विचारों के लिए स्क्रॉल के बजाय नीचे स्क्रॉल नहीं करता है। अंतिम 3 फ़ील्ड छुपाए गए हैं क्योंकि दृश्य आगे स्क्रॉल नहीं करता है।बाधा लेआउट के अंदर स्क्रॉलव्यू पैरेंट बाधा के नीचे स्क्रॉल नहीं करता है
PARENT लेआउट
<android.support.constraint.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:id="@+id/activity_register"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusableInTouchMode="true"
android:orientation="vertical">
<!-- Textview and a button -->
<ScrollView
android:id="@+id/scrollView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:orientation="vertical"
android:overScrollMode="never"
android:scrollbars="none"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/view"
tools:layout_constraintBottom_creator="1"
tools:layout_constraintLeft_creator="1"
tools:layout_constraintRight_creator="1"
tools:layout_constraintTop_creator="1"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="0dp">
<android.support.constraint.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- Child Views (12/13 views of the fields)-->
</android.support.constraint.ConstraintLayout>
</ScrollView>
</android.support.constraint.ConstraintLayout>
'स्क्रॉलव्यू'' से 'match_parent' के' android: layout_height' पैरामीटर को बदलने का प्रयास करें। – Ircover
कोशिश की, फिर भी यह काम नहीं करता है। –
अभिभावक से मेल खाने के लिए ऊंचाई सेट करें और अपने स्क्रॉलव्यू के लिए fillViewPort सच करें, या नेस्टेड स्क्रॉलव्यू –