请查看以下负责创建 GUI 的 android xml 文件
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/imageTitle"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:text="@string/imageDate"
android:textAppearance="?android:attr/textAppearanceLarge" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="254dp"
android:layout_weight="0.34"
android:src="@drawable/test_image" />
<TextView
android:id="@+id/textView3"
android:layout_width="fill_parent"
android:layout_height="136dp"
android:text="@string/imageDescription" />
</LinearLayout>
</ScrollView>
我正在尝试滚动整个屏幕,但它没有发生。上传的图片会让您一目了然。为什么它不滚动?我是 android 新手,这是我的第二个应用程序。请帮忙!