2013年9月3日
摘要: 转自:http://chroya.iteye.com/blog/974031让程序全屏的方法,大家都知道,那是静态的,程序运行之初就申明了。但是如果有这样的需求:要在程序运行的过程中,执行了某个操作而使之全屏,然后还需要退出全屏,怎么做? 如下:Java代码 WindowManager.LayoutParams attrs = getWindow().getAttributes(); attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN; getWindow().setAttributes(attrs); getWin... 阅读全文
posted @ 2013-09-03 13:11 飘杨...... 阅读(445) 评论(0) 推荐(0) 编辑
摘要: package com.example.myapi.pictobig;import com.example.myapi.R;import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.BitmapShader; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Sha... 阅读全文
posted @ 2013-09-03 13:06 飘杨...... 阅读(2499) 评论(0) 推荐(0) 编辑