如下所述:
情况一:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<com.views.myView
android:layout_height="fill_parent"
android:layout_width="fill_parent" />
</LinearLayout>
显示:
情况二:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<com.views.myView
android:layout_height="fill_parent"
android:layout_width="fill_parent" />
</ScrollView>
</LinearLayout>
显示:
怎么设置myView才能全部显示呢..
情况一:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<com.views.myView
android:layout_height="fill_parent"
android:layout_width="fill_parent" />
</LinearLayout>
显示:
情况二:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<com.views.myView
android:layout_height="fill_parent"
android:layout_width="fill_parent" />
</ScrollView>
</LinearLayout>
显示:
怎么设置myView才能全部显示呢..
3楼的看起来很厉害 感觉麻烦就没试了(鄙人功夫不到家所致啊)
我这里是绝对布局引起的 把layout_x和layout_y的设置去掉 什么都不用设置就显示完整了。