摘要: 都是自己随手练习时写的一些小demoPaint类:package com.gyz;import android.content.Context;import android.graphics.Bitmap;import android.graphics.Bitmap.Config;import an... 阅读全文
posted @ 2015-07-07 13:38 Assasin哲 阅读(532) 评论(0) 推荐(0)
摘要: 使用scrollview后,alignParentBottom不起效,布局不能完全拉伸,match_parent无效 设置scrollView的fillViewPort属性为true Romain Guy write a little info about a ScrollView attribute that is missing from documentation :android:fil... 阅读全文
posted @ 2015-07-03 11:51 Assasin哲 阅读(492) 评论(0) 推荐(0)
摘要: 通过getSystemService获得android 系统的一些服务1、WINDOW_SERVICE 返回值 WindowManager 是一个唯一的全局控制Android的窗口机制,可以添加view到屏幕,主要方法有WindowManager.LayoutParams2、LAYOUT_INFLA... 阅读全文
posted @ 2015-07-03 11:33 Assasin哲 阅读(294) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-07-03 11:03 Assasin哲 阅读(160) 评论(0) 推荐(0)
摘要: 最近界面里要添加语音功能,记录下做的过程中遇到的问题:1、java.io.IOException: Prepare failed.: status=0x1解决方法:mp.setDataSource(PATH_TO_FILE);mp.prepare();这个地方修改如下:File file = new... 阅读全文
posted @ 2015-07-02 17:06 Assasin哲 阅读(938) 评论(0) 推荐(0)
摘要: 1、十进制数字格式化工具:DecimalFormatDecimalFormat df = new DecimalFormat(); double data = 1203.405607809; System.out.println("格式化之前:" + data); String pattern... 阅读全文
posted @ 2015-07-01 14:15 Assasin哲 阅读(287) 评论(0) 推荐(0)
摘要: 最近正好用到,写个小Demo记录下:清单文件: DBlite:package com.gyz;im... 阅读全文
posted @ 2015-06-29 13:42 Assasin哲 阅读(254) 评论(0) 推荐(0)
摘要: 1、配置jdk、sdk路径2、配置genymotion file->settings->plugins->browse repositories3、build.gradle里设置编译sdk版本,没有在manifest里面了4、settings里设置autoimport 自动导包5、直接使用命令编译g... 阅读全文
posted @ 2015-06-28 10:36 Assasin哲 阅读(426) 评论(0) 推荐(0)
摘要: 添加已有项目到github新建repository,可以在github网站上直接新建或者使用windows github工具。进入github repository 项目在github windows工具中使用git Bash打开项目,使用cd命令进入已有项目根目录下touch README.md ... 阅读全文
posted @ 2015-06-24 16:09 Assasin哲 阅读(1251) 评论(0) 推荐(0)
摘要: 一些重要常量含义:HIDE_IMPLICIT_ONLY 常量值: 1 (0x00000001) hideSoftInputFromWindow(IBinder, int)中的标志,表示如果用户未显式地显示软键盘窗口,则隐藏窗口。HIDE_NOT_ALWAYS 常量值: 2 (0x0000000... 阅读全文
posted @ 2015-06-23 15:14 Assasin哲 阅读(496) 评论(0) 推荐(0)