में विस्तार नहीं कर रहा है मैंने एक एक्सएमएल कोड लिखा है, जहां मैं पैरेंट चौड़ाई फिट करने के लिए एडिटटेक्स्ट का विस्तार करना चाहता हूं। इतना समय बिताने के बाद, मुझे एडिटटेक्स्ट का विस्तार करने का कोई तरीका नहीं मिल रहा है।क्यों EditText fill_parent
<?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">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TableRow
android:layout_marginLeft="10dp"
android:layout_marginBottom="15dip">
<TextView
android:text="Comment"
android:layout_width="match_parent"
android:textStyle="bold"
android:padding="3dip" />
</TableRow>
<TableRow
android:layout_marginLeft="10dp"
android:layout_marginBottom="15dip">
<EditText
android:id="@+id/EditText02"
android:layout_height="wrap_content"
android:lines="5"
android:gravity="top|left"
android:inputType="textMultiLine"
android:scrollHorizontally="false"
android:minWidth="10.0dip"
android:maxWidth="5.0dip"/>
</TableRow>
<TableRow
android:layout_marginLeft="10dp"
android:layout_marginBottom="15dip"
android:gravity="center">
<Button
android:id="@+id/cancel"
android:text="Next" />
</TableRow>
</TableLayout>
</LinearLayout>
क्या मैं गलत यहाँ बना दिया है:
यहाँ मेरी एक्सएमएल है। क्रिप्या मेरि सहायता करे।
मैं इसे match_parent करने के लिए एक layout_width दिया है
android:stretchColumns="0"
जोड़ने के लिए, लेकिन कुछ भी बदल रहा है कृपया। – user1462473'maxWidth' और' minWidth' विशेषताएँ भी हटाएं। – kcoppock