上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

2017年4月14日

Activity取消过渡动画

摘要: 很多手机都会自带一些Activity切换动画,项目中如果a56爆大奖在线娱乐们需要禁用掉系统Activity切换的动画,可以使用如下方法: 一、重写Activity的Them中的windowAnimationStyle相关属性,并保存在res/values/styles.xml 二、在不想有动画的Activity上设 阅读全文

posted @ 2017-04-14 14:48 yaolunhui 阅读(3750) 评论(0) 推荐(0) 编辑

2017年4月11日

gridview划线

摘要: gridview设置划线颜色 item设置背景色 阅读全文

posted @ 2017-04-11 18:54 yaolunhui 阅读(174) 评论(0) 推荐(0) 编辑

2017年4月6日

获取SD卡路径

摘要: public static String getSDPath(){ File sdDir = null; boolean sdCardExist = Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_M 阅读全文

posted @ 2017-04-06 15:14 yaolunhui 阅读(135) 评论(0) 推荐(0) 编辑

保存Bitmap图像

摘要: /** * 保存文件 * @param bm * @param fileName * @throws IOException */ public void saveFile(Bitmap bm, String fileName) throws IOException { String path =  阅读全文

posted @ 2017-04-06 15:14 yaolunhui 阅读(153) 评论(0) 推荐(0) 编辑

adb not responding. if you'd like to retry then please manually kill adb.exe and click 'restart',restart

摘要: 最近Android Studio老是提示一个问题,adb not responding. if you'd like to retry then please manually kill adb.exe and click 'restart',restart没用,kill-server和start- 阅读全文

posted @ 2017-04-06 12:54 yaolunhui 阅读(538) 评论(0) 推荐(0) 编辑

2017年4月1日

弹出异地登录dialog

摘要: final AlertDialog dlg = new AlertDialog.Builder(LoginActivity.this).create();dlg.show();Window window = dlg.getWindow();if(window!=null){ window.setCo 阅读全文

posted @ 2017-04-01 09:16 yaolunhui 阅读(127) 评论(0) 推荐(0) 编辑

2017年3月30日

反编译,修改jar文件

摘要: 一、使用反编译工具JD-GUI(JD-GUI相关操作见Java 反编译class文件)打开要修改的jar包(如update.jar),找到jar包中要修改的class文件(如a.class) 二、打开Eclipse新建一个Java工程(如demo),并添加一个类(如A.java:该类名与a.clas 阅读全文

posted @ 2017-03-30 21:05 yaolunhui 阅读(999) 评论(0) 推荐(0) 编辑

进程方式启动Activity

摘要: <activity android:name=".ArticleActivity" android:screenOrientation="portrait" android:process=":articleactivity" > <intent-filter> <action android:na 阅读全文

posted @ 2017-03-30 13:56 yaolunhui 阅读(174) 评论(0) 推荐(0) 编辑

2017年3月27日

设置程序语言

摘要: Locale locale = new Locale(language);Locale.setDefault(locale);Configuration config = getResources().getConfiguration();DisplayMetrics metrics = getRe 阅读全文

posted @ 2017-03-27 14:53 yaolunhui 阅读(230) 评论(0) 推荐(0) 编辑

程序间保存数据SharedPreferences

摘要: SharedPreferences sp = getSharedPreferences("config", MODE_PRIVATE);String cacheToken = sp.getString("loginToken", "");if (!TextUtils.isEmpty(cacheTok 阅读全文

posted @ 2017-03-27 14:52 yaolunhui 阅读(116) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

导航