मैं निम्नलिखित XML लेआउट है:यह लाइनरलाइटआउट एंड्रॉइड का उपयोग करना चाहिए: layout_height = "wrap_content"?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" // ==> here I get the error.
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Test"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="2dip"
android:background="#298EB5"
android:orientation="horizontal" />
</LinearLayout>
</ScrollView>
लेकिन मैं बत्ती संदेश मिलता है:
यह LinearLayout एंड्रॉयड का उपयोग करना चाहिए: layout_height = "wrap_content"
मैं क्यों मिलता है ये संदेश?
फ़ॉर्मेटिंग के लिए धन्यवाद ब्रो। –