나는 다음과 같은 XML 레이아웃이 있습니다이 LinearLayout은 android : 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"를
왜 내가 어떻게해야합니까를 이 메시지?
서식을 지정해 주셔서 감사합니다. –