2011年1月28日
摘要: Android很有用的代码片段 1:查看是否有存储卡插入String status=Environment.getExternalStorageState();if(status.equals(Enviroment.MEDIA_MOUNTED)){ 说明有SD卡插入}2:让某个Activity透明OnCreate中不设Layout this.setTheme(R.style.Theme_Transparent);以下是Theme_Transparent的定义(注意transparent_bg是一副透明的图片)3:在屏幕元素中设置句柄使用Activity.findViewById来取得屏幕上的元 阅读全文
posted @ 2011-01-28 10:49 stay 阅读(345) 评论(0) 推荐(0) 编辑