我有一个scrollView(这是一个支持横向可计算性的解决方案)
并在其中一个孩子 - linearLayout.
我想在屏幕底部设置一个按钮.
layout_height = match_parent
因为滚动可以是无限的,所以是有问题的.
我该怎么做才能兼容所有屏幕分辨率?
这是我的xml
这是宽屏幕上的结果
按钮位于滚动的底部,横跨整个屏幕的3/4
在你的scrollview中添加android:fillViewport ="true":
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res/com.m" android:layout_ android:layout_ android:background="@color/blue_bg" android:fillViewport="true" >