按钮在界面最下面
来源:互联网 发布:淘宝现货怎么抢最快 编辑:程序博客网 时间:2024/06/05 23:01
主要用到了Scrollview的fillViewport的属性。
android:fillViewport="true"
举个例子:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.shipingtest2.MainActivity" >
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="测试的文字"
android:textSize="100dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:gravity="center_horizontal" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="确定" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</RelativeLayout>
0 0
- 按钮在界面最下面
- tabtableView最下面加按钮
- 始终在最下面
- div浮动在最下面
- android把控件置于屏幕最下面(一般是按钮)
- 如何让窗口总在最下面?
- jquery 滚动条在最下面
- div 滚动条在最下面
- 主体高度不定,footer在最下面
- 就是在设计界面可以看到的最下面的那个说明 因为我需要在程序中告诉用户这个字段是干什么的
- 瑞星在windows登录界面图标按钮
- 取得文件路径 MFC 在界面 按钮
- Winform程序在Win10下面界面布局混乱的情况
- 控制编辑框焦点在最下面的方法(CEdit)
- 控制编辑框焦点在最下面的方法(CEdit)
- 手动 命令行打包 apk 示例(在最下面)
- grid.panel 让bbar放在最下面。
- oracle的标准格式(在最下面)
- ACM刷题之POJ————Jungle Roads
- 中国金融创新技术峰会会议日程
- AC自动机-洛谷3121 [USACO15FEB]审查(黄金)Censoring (Gold)
- 加密初了解
- 使用caffe的python接口实现内部参数可视化
- 按钮在界面最下面
- Oracle EBS Forms数字签名无法验证卡住解决方法
- 前端工程师常用可视化工具
- 关于echarts图表传json对象,树状图传参数的建议
- 慕课-程序设计与算法(大学先修课)-郭炜-第三周练习题
- poj 3579 二分加尺取法
- Angular 1.6版本路由中/#!/的解决方法
- ExpressBox 3450
- MySQL中的约束,添加约束,删除约束,以及一些其他修饰