wholeContainer.setMinimumHeight(wholeContainerHeight + buttonsContainerHeight);
来源:互联网 发布:淘宝超级店长使用教程 编辑:程序博客网 时间:2024/06/09 23:15
<android.support.v4.widget.NestedScrollView> <LinearLayout android:id="@+id/whole_container"> ... ... </LinearLayout></android.support.v4.widget.NestedScrollView><LinearLayout android:id="@+id/buttons_container"> <Button> <Button></LinearLayout>
在整个屏幕下面有两个固定的button,想让nestedscrollview能够滑动时超过这两个button,这样设置怎么也不行。
wholeContainer.setMinimumHeight(wholeContainerHeight + buttonsContainerHeight);
最后只好在wholeContainer里加了一个space,控制space的高度
0 0
- wholeContainer.setMinimumHeight(wholeContainerHeight + buttonsContainerHeight);
- Android自定义控件无法通过代码修改大小、高宽,setMinimumHeight无效的问题
- PHP Libevent扩展安装及应用
- Python及bs4、lxml、numpy模块包的安装
- sys用户登录出现错误提示 ORA-28009:connection as SYS should be as SYSDBA OR SYSOPER
- Android面试题精选
- Unable to open debugger port (localhost:8617): java.net.ConnectException "连接超时"
- wholeContainer.setMinimumHeight(wholeContainerHeight + buttonsContainerHeight);
- 【简单DP】矩阵取数问题
- Retrofit2.0使用详解
- Mysql常见的错误
- 深入理解Java回调函数
- 希尔排序
- IntentService的简单用法
- asp 后台获取 input 的值
- Dubbo基本原理机制