【发布时间】:2017-11-19 20:39:34
【问题描述】:
我对那个 ScrollView 有一些问题。“必须声明元素 ScrollView,我不知道我可以用那个标记做什么,有人可以帮助我吗?
<?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"
android:overScrollMode="never"
android:scrollbars="none" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/background_color" />
<ImageView
android:id="@+id/close_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_gravity="top|end"
android:layout_margin="4dp"
android:contentDescription="@string/closebutton"
android:padding="5dp"
android:src="@drawable/close" />
<FrameLayout
android:id="@+id/frameContainer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/close_activity" />
</RelativeLayout>
</ScrollView>
【问题讨论】:
标签: android xml scrollview