摘要: onKeyDown() and onBackPressed() doesn't work for this case. You have to use onKeyPreIme.Initially, you have to create custom edit text that extends Ed... 阅读全文
posted @ 2015-11-04 18:40 Aland 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 在android的开发过程中,难免会使用第三方的字体库,但是一般的字体库文件体积很大,这就使我们的应用“肥胖”;为了达到使用第三方字体库,应用又不会达到“增肥”呢?不费话了 直接上解决方案(其实方法简单):1.首先对相应ttf文件进行“瘦身”,使用FontCreater打开ttf文件删除不必要的字符... 阅读全文
posted @ 2015-10-10 12:21 Aland 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 刚接触到android的开发,对什么都陌生的,本文是自己在项目中使用的技术要点总结,大咖遇到可直接飘过。。。。。1.Gradle 打包(不废话了直接来脚本),将下列脚本放到build.gradle文件android{}内; 1 defaultConfig{ 2 //appli... 阅读全文
posted @ 2015-05-06 18:25 Aland 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: //import java.util.Calendar; import java.util.Scanner;public class Main { public static void main(String args[]) throws Exception { Scanner input = new Scanner(System.in); int y=input.nextInt(); int m=input.nextInt(); String[] ms ={"一月","二月","三月","四月","五月 阅读全文
posted @ 2014-03-26 14:48 Aland 阅读(221) 评论(0) 推荐(0) 编辑