के अंदर कार्डव्यू नीचे सीमा काट दिया गया है, मैं स्क्रॉलव्यू के अंदर कार्डव्यू डाल रहा हूं, हम नीचे देखने की उम्मीद करते हैं कि सीमा को दिखाया जाना चाहिए (नीचे चित्र देखें)। लेकिन ऐसा नहीं है। समस्या यह है कि मैं कार्डव्यू की सीमा देखने के लिए नीचे स्क्रॉल नहीं कर सकता।स्क्रॉलव्यू एंड्रॉइड
SO पर सभी समाधान लेआउट_मार्गिन को पैडिंग में बदलना है, लेकिन अगर हम सीमा दिखाना चाहते हैं तो कार्डव्यू के मामले में यह नहीं है। मैंने मूल रूप से सब कुछ करने की कोशिश की। लेकिन अभी भी काम नहीं करता है।
चित्र 1. नीचे करने के लिए स्क्रॉल सीमा
नहीं देख सकते हैंचित्र 2. हम देख सकते हैं शीर्ष सीमा
निम्न XML कोड
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
...
</LinearLayout>
</CardView>
</LinearLayout>
संदर्भ है : ScrollView doesn't scroll to the bottom
ScrollView cuts off the top and leaves space at the bottom
I can't show LinearLayout at bottom to scroll view
Android ScrollView refuses to scroll to bottom
आप एक स्क्रीनशॉट मदद करने के लिए बेहतर समझने में हमारी क्या चल रहा है संलग्न कर सकते हैं? – Vucko
@ वोको स्क्रीन शॉट जोड़ा गया, धन्यवाद – Cheng