摘要:
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... 阅读全文
摘要:
在android的开发过程中,难免会使用第三方的字体库,但是一般的字体库文件体积很大,这就使我们的应用“肥胖”;为了达到使用第三方字体库,应用又不会达到“增肥”呢?不费话了 直接上解决方案(其实方法简单):1.首先对相应ttf文件进行“瘦身”,使用FontCreater打开ttf文件删除不必要的字符... 阅读全文
摘要:
刚接触到android的开发,对什么都陌生的,本文是自己在项目中使用的技术要点总结,大咖遇到可直接飘过。。。。。1.Gradle 打包(不废话了直接来脚本),将下列脚本放到build.gradle文件android{}内; 1 defaultConfig{ 2 //appli... 阅读全文
摘要:
//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 ={"一月","二月","三月","四月","五月 阅读全文