मैं एंड्रॉइड डिवाइस के लिए एक ऐप बना रहा हूं और मैं लाइनरलाइट के अंदर स्क्रॉलव्यू देखने की कोशिश कर रहा हूं लेकिन जब मैं ऐसा करने की कोशिश करता हूं तो स्क्रॉलव्यू स्क्रॉलव्यू के बाद सभी जगहों और तत्वों को लेता है LinearLayout disapear में। यदि scrollview "पूर्ण" है
:एंड्रॉइड: लंबवत रैखिकलाइट में स्क्रॉल व्यू
उदाहरण के लिए:
scrollview यदि नहीं "पूर्ण" है
आप बटन गायब देख सकते हैं ...
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_marginLeft="50dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:orientation="vertical"
android:focusable="true"
android:focusableInTouchMode="true"
android:background="@drawable/linearlayoutbackground" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nom_des_joueurs"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_marginBottom="30dp" />
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/llPlayersName"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
</LinearLayout>
</ScrollView>
<Button
android:id="@+id/okPlayersName"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/ok"
android:background="@drawable/backgroundbutton"
android:layout_marginTop="30dp" />
</LinearLayout>
बाद मैं लीनिया में तत्वों को जोड़ने: यहाँ इस गतिविधि का कोड है RLayout जो स्क्रॉलव्यू में हैं।
कोई समाधान?
धन्यवाद।
एक ही समय में एक ही समाधान लिख रहा था :-P आप तेजी से थे .. –
आप इसे के काम की सराहना करते :) – kakko76