设置android SurfaceView背景透明
2015-08-12 14:55
666 查看
<span style="font-size:18px;"><span style="white-space:pre"></span>//设置surface背景透明 SurfaceHolder surfaceHolder; surface1 = (SurfaceView) view.findViewById(R.id.surfaceView1); surface1.setZOrderOnTop(true); // 这句不能少 surfaceHolder = surface1.getHolder(); surfaceHolder.setFormat(PixelFormat.TRANSPARENT);</span>
相关文章推荐
- Android上常见度量单位【xdpi、hdpi、mdpi、ldpi】解读
- Android之TabHost布局
- Android View系统学习——从setContentView说开来
- 利用android工具创建Android项目
- Android Logcat调试中的V、D、I、W、E的分别代表什么?
- android QQ第三方登录(一)
- Android嵌套滑动组件相关的文章资料
- Android开发之ExpandableListView扩展(BaseExpandableListAdapter的使用)(完整版)
- android事件分发总结
- Android中ExpandableListView控件基本使用
- Android基本概念
- Android读取SD卡内容
- Android(安卓)开发通过NDK调用JNI,使用opencv做本地c++代码开发配置方法实现边缘检测代码(2)
- 【Xamarin开发 Android 系列 13】 应用打包部署
- 【Android】首次进入应用时加载引导界面
- 【Xamarin开发 Android 系列 11】 创建一个Json读取数据应用-添加摄像头集成
- 【Xamarin开发 Android 系列 12】 创建一个Json读取数据应用-添加定位服务
- Android Activity的销毁和重建
- 【Xamarin开发 Android 系列 9】 创建一个Json读取数据应用-列表页(中)
- 【Xamarin开发 Android 系列 10】 创建一个Json读取数据应用-详情页(下)