मैं इस तरह एक लेआउट के साथ एक कस्टम संवाद बंद बटन धक्का:scrollview साथ एंड्रॉयड कस्टम संवाद स्क्रीन
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/mylayout">
<LinearLayout
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView ... />
<TextView .../>
</LinearLayout>
<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/title">
<LinearLayout ...>
<TextView ...
android:text="lots of text........" />
<TextView .../>
</LinearLayout>
</ScrollView
<RelativeLayout ...
android:layout_below="@+id/scrollView">
<Button ...>
<Button ...>
</RelativeLayout>
</RelativeLayout>
मेरे समस्या यह है कि scrollview है यह है कि जब वहाँ scrollview में बहुत अधिक लेख है, नीचे दिए गए बटन संवाद से बाहर धकेल दिए गए हैं। मैं RelativeLayout को एंकर करके इसे रोकने में सक्षम हूं जिसमें एंड्रॉइड का उपयोग करके नीचे दिए गए बटन शामिल हैं: layout_alignParentBottom = "true", लेकिन स्क्रॉलव्यू में कम टेक्स्ट होने पर मैं पूरे संवाद को स्क्रीन के नीचे खींचता हूं और मुझे वह नहीं चाहिए।
कैसे मैं इस तरह एक लेआउट प्राप्त कर सकते हैं:
[SOME TEXT]
[Scrollable region]
[Buttons]
300dip –
की तरह मुख्य लेआउट की ऊंचाई ठीक करने का प्रयास मैं मुख्य लेआउट की ऊंचाई तय करने के लिए नहीं करना चाहते हैं, क्योंकि यह अलग स्क्रीन आकार और झुकाव –