Android studio 如何使滚动视图位于屏幕前面
我有下面的scrollview,它确实垂直滚动,但我发现它没有占据更多的高度,似乎在屏幕后面,不确定这是否有意义,但这是它的图片,我尝试使用填充父对象或将父对象与高度匹配,但似乎没有延伸。也许,滚动视图应该是这样的Android studio 如何使滚动视图位于屏幕前面,android-studio,Android Studio,我有下面的scrollview,它确实垂直滚动,但我发现它没有占据更多的高度,似乎在屏幕后面,不确定这是否有意义,但这是它的图片,我尝试使用填充父对象或将父对象与高度匹配,但似乎没有延伸。也许,滚动视图应该是这样的 enter code<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com
enter code<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="none"
android:layout_weight="1"
tools:context=".ListViewActivity">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:layout_marginBottom="10dp"
android:id="@+id/listView"
tools:ignore="NestedScrolling" />
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/edit"/>
</RelativeLayout>
</ScrollView>
输入代码
这里我使用线性布局解决它。。。