के दाएं गठबंधन और नीचे लेआउट को कैसे लेआउट देखें, मैं लेआउट 1 टेक्स्टव्यू (अपटेक्स्ट) बाएं गठबंधन और 1 टेक्स्टव्यू (डाउनटेक्स्ट) और एक छवि दृश्य (छवि) दोनों को एक ही पंक्ति पर और सही गठबंधन करने की कोशिश कर रहा हूं।एक लाइनरलाइट
मैं यह कैसे कर सकता हूं? मैंने कोशिश की, लेकिन बाएं गठबंधन पर दोनों 'टेक्स्टव्यू' और छवि दृश्य।
<TextView
android:id="@+id/uptext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="left"/>
<TextView
android:id="@+id/downtext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:gravity="right|bottom"/>
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right|bottom"/>
</LinearLayout>
धन्यवाद। मैं इसे कैसे बना सकता हूं ताकि दोनों दूसरे टेक्स्ट व्यू और इमेज व्यू लेआउट साइड-बाय-साइड को नीचे और दाईं ओर मूल रैखिकलायआउट के गठबंधन कर रहे हों? – michael
जो दाएं दाएं ("विजेट ए") में सभी तरह से जाता है, में 'android: layout_alignParentBottom =" true "' और 'android: layout_alignParentRight =" true "' होना चाहिए। दूसरा ("विजेट बी") में 'एंड्रॉइड होना चाहिए: layout_alignParentBottom = "true" 'और' android: layout_toLeftOf = "..."', जहां '" ... "' 'एंड्रॉइड: आईडी 'है विजेट ए – CommonsWare