摘要: 来源:http://stackoverflow.com/questions/1640659/how-to-adjust-text-kerning-in-android-textview/16429758#164297581、直接设置public static Spannable applyKerning(CharSequence src, float kerning, int start, int... 阅读全文
posted @ 2016-01-04 13:01 风倾清凌 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 设置为灰度图public Bitmap toGrayscale(Bitmap bmpOriginal){ int width, height; height = bmpOriginal.getHeight(); width = bmpOriginal.getWidth(); Bitmap bmpGrayscale = Bitmap.create... 阅读全文
posted @ 2016-01-04 13:00 风倾清凌 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 实现功能:短信内容中含有url(例如,http://youngo.com/app/),点击后打开apk遗留问题:点击url后,会出现选择框,让用户选择是用浏览器打开还是用该apk打开————没有找到方法如何不出现该选择框??参考:http://stackoverflow.com/questions/2958701/launch-custom-android-application-from-and... 阅读全文
posted @ 2016-01-04 12:59 风倾清凌 阅读(4242) 评论(0) 推荐(0) 编辑
摘要: https://code.google.com/p/achartengine/ Code Test代码:/workspace/AChartEngineTest /workspace/appcompat_v7/workspace/AChartEngineDemoAChartEngine is a charting library for Android applications. It curr... 阅读全文
posted @ 2016-01-04 12:59 风倾清凌 阅读(1356) 评论(0) 推荐(0) 编辑
摘要: 只是很简单的实现表格,使用GridView控件——>可以上下左右滚动,但是不能合并直接上代码:1、主要布局 2、表格中一个item的布局 3、Adapter代码package com.example.achartenginetest.adapter;i... 阅读全文
posted @ 2016-01-04 12:58 风倾清凌 阅读(519) 评论(0) 推荐(0) 编辑
摘要: RoundProgressBar.java/** * RoundProgressBar.java [v1.0.0] * classes: com.example.audiorecordingtest.RoundProgressBar * Amanda Create at 2014年10月10日 下午4:16:45 * Copyright 阳光健康信息技术有限公司 */package com.exa... 阅读全文
posted @ 2016-01-04 12:56 风倾清凌 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 新的方法带来许多便利,但无法在低版本系统上运行,如果兼容性处理不恰当,APP在低版本系统上,运行时将会crash。本文以一个具体的例子说明如何在使用高API level的方法时处理好兼容性问题。例子:根据给出路径,获取此路径所在分区的总空间大小。在安卓中的文件存储使用参考中提到:获取文件系统用量情况,在API level 9及其以上的系统,可直接调用File对象的相关方法,以下需自行计算一般实现就... 阅读全文
posted @ 2016-01-04 12:54 风倾清凌 阅读(695) 评论(0) 推荐(0) 编辑
摘要: 第三方库,附件缺点:该库只支持.xls文件的操作1、读取excel文件例子: try { /** * 后续考虑问题,比如Excel里面的图片以及其他数据类型的读取 **/ InputStream is = new FileInputStream(path... 阅读全文
posted @ 2016-01-04 12:50 风倾清凌 阅读(953) 评论(0) 推荐(0) 编辑
摘要: 1、从Github中下载工程压缩包,并将其解压到本地2、修改文件假设,解压后的文件目录如下:(1)修改配置文件 xx\build.gradle// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories... 阅读全文
posted @ 2016-01-04 11:42 风倾清凌 阅读(2020) 评论(0) 推荐(0) 编辑
摘要: 1、下载并安装github客户端http://git-scm.com/download/ 2、打开android studio,测试github是否使用ok点击“test”,如果弹出下述窗口,这说明github安装成功。很不幸,我第一次点击时弹出提示“Agreeing to the Xcode/iOS license requires admin privileges, please re-run... 阅读全文
posted @ 2016-01-04 11:40 风倾清凌 阅读(2986) 评论(0) 推荐(0) 编辑