首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

android 中 View 的层次有关问题

2012-08-15 
android 中 View 的层次问题我写了一个suefaceView 使用gLSurfaceView.getHolder().setFormat(PixelFormat

android 中 View 的层次问题
我写了一个suefaceView 使用
  gLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);

  gLSurfaceView.setZOrderOnTop(true);使SurfaceView透明化 ,可以看见layout的背景
  
 问题是 使用setZOrderOnTop(true) 又会把suefaceView 放置在最顶层,把android中的button给挡住了 


 我现在想让 1.surfaceView透明化,看见背景
  2.surfaceView之上要有button ,不会被挡住 。

大牛们 谁知道 ,帮忙说下 ,感激不尽


[解决办法]
把他们都放在FrameLayout里面后再一层层add。。。。
[解决办法]
relativelayout包裹一下 加入按钮试试.

热点排行