मैं एंड्रॉइड के साथ शुरुआत कर रहा हूं। मुझे एक सरल लेआउट जाने में परेशानी हो रही है।
मैं एक पंक्ति में LinearLayoutदो की स्थिति का उपयोग करना चाहूंगा TextViews। एकTextView बाएं हाथ की तरफ, दूसरा दाएं हाथ की तरफ (फ्लोट करने के लिए समान: बाएं, फ्लोट: सीएसएस में दाएं)।
क्या यह संभव है, या क्या मुझे एक अलग उपयोग करने की आवश्यकता है ViewGroup इसे पूरा या आगे के लेआउट के घोंसले का है?
यहाँ मेरे पास अभी तक क्या है:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="horizontal" android:padding="10sp">
<TextView android:id="@+id/mytextview1" android:layout_height="wrap_content" android:text="somestringontheleftSomestring" android:layout_width="wrap_content"/>
<TextView android:id="@+id/mytextview2" android:layout_height="wrap_content" android:ellipsize="end"
android:text="somestringontheright" android:layout_width="wrap_content"/>
</LinearLayout>


