- 博客(3)
- 资源 (9)
- 收藏
- 关注
原创 (二)webView加载html字符串
webView1.getSettings().setJavaScriptEnabled(true);webView1.getSettings().setDefaultTextEncodingName("UTF-8");webView1.loadDataWithBaseURL(html, "text/html","UTF-8");如果加载html字符串出现乱码的话建议加载下面
2015-08-25 15:36:19 3116 1
原创 单例模式的几种写法
//自定义有进度条的webviewpublic class ProgressWebView extends WebView { private ProgressBar progressbar; public ProgressWebView(Context context, AttributeSet attrs) { super(contex
2015-08-25 15:23:05 1632
原创 android 图片压缩方法
android做多图上传时,压缩比小的或回报内存溢出问题,太大的话会导致图片不清晰,所以图片压缩很重要。第一:质量压缩法:private Bitmap compressImage(Bitmap image) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); image.compr
2015-08-14 14:19:52 579
mysql DOS命令行
2012-08-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人