如果SurfaceView大小比设备屏幕大,如何添加SurfaceView滚动功能?

时间:2012-11-03 15:12:49

标签: android surfaceview

我将SurfaceView与RelativeLayouts定义为 root RelativeLayout的子项:

enter image description here

我的主应用程序包含2个RelativeLayouts(顶部和底部带按钮)和SurfaceView有10个蓝色球。看起来像是:

enter image description here

我的目标是能够滚动SurfaceView以获得其他球视图而不仅仅是第4个,如上图所示。类似的东西:

enter image description here

主要是水平滚动条。人们说我无法在SurfaceView下添加ScrollView

任何想法我该如何实现?

所有建议都将不胜感激。

0 个答案:

没有答案