在我的图形布局中,即使设置了滚动视图,它也会在屏幕末尾切断。有没有办法扩展图形布局,以便我可以看到整个滚动视图,而不仅限于屏幕大小?如何扩展android图形布局屏幕大小?
XML代码:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layoutChampions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
检查是否在某处添加了边距/填充。如果你可以附加屏幕截图,那将会很好。 – Sharj
刚刚添加的代码 – Piofmc