05 2012 档案
摘要:imageview 显示圆形图片如下图。圆形头像原理。1、根据图片创建一个大小相同的画布。2、在画布上画一个圆形。3、画一个绘制交集,显示上层。// 将圆形图片,返回Bitmap public static Bitmap getCircleBitmap(Bitmap bitmap) { int x = bitmap.getWidth(); Bitmap output = Bitmap.createBitmap(x, x, Config.ARGB_8888); Canvas canvas = new Canvas(ou...
阅读全文
摘要://// HttpSendAction.m// cmoon//// Created by li yajie on 12-5-27.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import "HttpSendAction.h"@implementation HttpSendAction+(void) sendHttp:(NSString *) url withParam:(NSString *)param { NSMutableString * targetURL = [NSMutableS
阅读全文
摘要:android 源码下建立自有工程下编译1、source build/envsetup.sh\r\n\r\n 下面列出一个通用makefile模板 # This makefile supplies the rules for building a library of JNI code for\r\n\r\n # use by our example of how to bundle a shared library with an APK. LOCAL_PATH:= $(call my-dir) tw_module_tags := eng debug include $(CLEAR_VARS
阅读全文

浙公网安备 33010602011771号