在Android中,如何让一个滚动窗格 [英] In Android, how to get a scrollpane

查看:166
本文介绍了在Android中,如何让一个滚动窗格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有这就像在摆一个ScrollPane一个widget。

I am wondering if there is a widget that acts like a ScrollPane in Swing.

其实,我试图做一个布局,在顶部有总是可见的标题栏,并根据它具有可变高度的组件,我可以垂直滚动,(而留下标题栏可见)

Actually, I am trying to make a layout, where the top has the title bar always visible, and under it have a variable height component that I can scroll vertically, (while leaving the title bar visible)

我相信这是很容易的,但我没有看到它

I am sure this is quite easy but I am not seeing it

谢谢,维克多

推荐答案

是的,你要包装你的滚动组件(S)或布局在<$​​ C $ C>滚动型。
保持了它的总是可见组件,你会达到你想要的效果。

Yes, you want to wrap your scrollable component(s) or layout in a ScrollView. Keep the "always visible" components out of it, and you'll achieve your desired effect.

API

如何使用它

一些技巧,使用它

这篇关于在Android中,如何让一个滚动窗格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆