के अंदर एक सूची दृश्य कैसे हो सकता है मैंने एक ऐसे पृष्ठ के साथ एक ऐप बनाया है जिसे वेब सेवा से गतिशील रूप से सामग्री लोड करने की आवश्यकता है। मैं सूचीदृश्य देखना चाहता हूं जो NestedScrollView के अंदर एक रैखिक लेआउट के साथ स्क्रॉल कर सकता है। लेकिन जब सामग्रियों को सूचीदृश्य में लोड किया जाता है, तो यह इसकी पूर्ण ऊंचाई तक खरोंच नहीं करता है।मेरे पास NestedScrollView
मेरा कोड यहां है।
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView 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"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.myquestionth.myquestionth10.Profile2Activity"
tools:showIn="@layout/activity_profile2">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="400dp"
android:background="#BBBBBB" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Media heading"
android:id="@+id/textView2" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis."
android:id="@+id/textView8" />
</LinearLayout>
<ListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#70bcf5" />
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
मैंने स्क्रॉलव्यू के बारे में कुछ खोज की है, जिसे नेस्टेड नहीं किया जा सकता है। यह एक उदाहरण है जिसे मैं Google Play समीक्षा पृष्ठ से अपने लेआउट डिज़ाइनिंग के अनुसार चाहता हूं। वे किस विधि का उपयोग करते हैं? अगर मैं कुछ गलत करता हूं तो मुझे सुझाव दें। बहुत धन्यवाद।
यहाँ मैं क्या चाहते है।
सूचीदृश्य की ऊंचाई को ठीक करें। या सबसे अच्छा तरीका समन्वयक और रीसाइक्लिंग व्यू का उपयोग करना है। [यह] देखें (http://inthecheesefactory.com/blog/android-design-support-library-codelab/en) –