-
android 自定义tab 实例源码
android 自定义tab 实例源码
- 2014-09-15下载
- 积分:1
-
android 实现后台service持续运行,并且唤醒之后进入自定义界面 例子
安装之后就能不断的唤醒,实现后台service持续运行,并且唤醒之后进入自定义界面
- 2014-09-19下载
- 积分:1
-
jq 转盘抽奖 示例代码
jq 转盘抽奖 示例代码
- 2014-10-26下载
- 积分:1
-
android-左右滑动 引导页面设计-仿微信效果 有截图 附源码
android-左右滑动 引导页面设计-仿微信效果 有截图 附源码
- 2013-07-17下载
- 积分:1
-
自定义TextView
解决textView的换行问题
- 2021-03-13 18:19:24下载
- 积分:1
-
调用相机拍照实现(Android)
【实例简介】调用相机拍照实现(Android)
- 2021-12-04 01:11:20下载
- 积分:1
-
android绝对布局入门实例 附完整源码
android绝对布局(AbsoutLayout)入门实例,春晓秋冬 四个字依次显示,如下效果图
- 2013-03-14下载
- 积分:1
-
远程视频监控
【核心代码】 public interface CameraSource { static final String LOG_TAG = "camera"; /** * Open the camera source for subsequent use via calls to capture(). * * @return true if the camera source was successfully opened. */ boolean open(); /** * Close the camera source. Calling close on a closed CameraSource is * permitted but has no effect. The camera source may be reopened after * being closed. */ void close(); /** * The width of the captured image. * * @return the width of the capture in pixels */ int getWidth(); /** * The height of the captured image. * * @return the height of the capture in pixels */ int getHeight(); /** * Attempts to render the current camera view onto the supplied canvas. * The capture will be rendered into the rectangle (0,0,width,height). * Outstanding transformations on the canvas may alter this. * * @param canvas the canvas to which the captured pixel data will be written * @return true iff a frame was successfully written to the canvas */ boolean capture(Canvas canvas); boolean saveImage(String savePath, String fileName); }
- 2013-12-04下载
- 积分:1
-
android OAuth认证、使用网易微博开放平台实现聊天功能源码
OAuth认证、使用网易微博开放平台实现聊天功能
- 2014-09-22下载
- 积分:1
-
java 为图片添加水印 示例
为图片添加水印 【核心代码】 /*** 添加水印* @param imagePath 图片绝对路径* @param watermarkPath 水印图片绝对路径* @param position 水印图片位置* @return 生成水印图片的绝对路径*/public static String addWatermark(String imagePath, String watermarkPath, String position) {logger.info("为图片({})在位置{}添加水印({})", imagePath, position, watermarkPath);if (StringUtils.isNotBlank(imagePath) && StringUtils.isNotBlank(watermarkPath)) {File image = new File(imagePath);File watermark = new File(watermarkPath);Position pos = getPostion(position);if (image.isFile() && image.exists() && watermark.isFile()) {try {BufferedImage bi = ImageIO.read(image);Builder builder = Thumbnails.of(imagePath);BufferedImage watermarkImg = ImageIO.read(watermark);File newWatermark = null;// 原图的宽或高是水印图片宽或高的2倍及以上,则直接打上水印原图;否则缩略水印图片,以原图宽或高的二分之一if (bi.getWidth() / watermarkImg.getWidth()
- 2017-10-13下载
- 积分:1