上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 41 下一页
摘要: Android Studio报错: android studio error configuration with name default not found 在进行sync的时候,提示Error:Configuration with name 'default' not found 注意:在引入 阅读全文
posted @ 2016-03-24 14:38 狂奔的小狮子 阅读(5375) 评论(0) 推荐(0) 编辑
摘要: Android studio配置jni开发环境,主要配置是两个build文件,以及新建一个jni文件,放c代码。 代码如下1: 代码如下2: 直接编译,运行即可调用c代码了,本次Android studio版本 2.0—beta 7.以及配置文件如上。 由于版本更新,gradle的语法的改变,bui 阅读全文
posted @ 2016-03-20 20:55 狂奔的小狮子 阅读(773) 评论(0) 推荐(0) 编辑
摘要: package me.chunsheng.hongbao.utils; import android.content.Context; import android.content.Intent; import android.content.pm.PackageInfo; import android.net.Uri; import android.os.AsyncTask; import ... 阅读全文
posted @ 2016-03-16 10:31 狂奔的小狮子 阅读(5696) 评论(0) 推荐(0) 编辑
摘要:  解决方案:     好,完美解决。之所以会出现这样错误,就是老的写法现在已经不兼容了。布局样式也要与时俱进。 阅读全文
posted @ 2016-03-13 11:43 狂奔的小狮子 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 代码设置 LinearLayout权重比例之小结: 如果在LinearLayout添加子View,那么只有一个View的时候设置所占的比例一定要设置LinearLayout总weightsum。不然会设置无效,代码示例: mTabLayout.setWeightSum(1.0f); mTabLayo 阅读全文
posted @ 2016-03-10 16:18 狂奔的小狮子 阅读(858) 评论(0) 推荐(0) 编辑
摘要: final long[] mHits = new long[2]; // iv_flaw_flow.setOnClickListener(new View.OnClickListener() { // @Override // public void onClick(View v) { // // 阅读全文
posted @ 2016-03-05 12:42 狂奔的小狮子 阅读(695) 评论(0) 推荐(0) 编辑
摘要: 布局: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.andr 阅读全文
posted @ 2016-03-02 14:44 狂奔的小狮子 阅读(2315) 评论(0) 推荐(0) 编辑
摘要: Building Android Apps — 30 things that experience made me learn the hard way There are two kinds of people — those who learn the hard way and those wh 阅读全文
posted @ 2016-02-26 09:49 狂奔的小狮子 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 代码精简无疑是每个程序员的目标,简短易读。java 8中的lambda表达式的使用: 4 easy steps Download and install jdk8. Add the following to your project’s main build.gradle buildscript { 阅读全文
posted @ 2016-02-26 09:37 狂奔的小狮子 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 如图: 注意,评论时间戳的格式,刚才,几小时之前,几天之前..... 实现需要一个时间格式的工具类,如果用java.util.Date当然也可以实现,这里说的是更方便的joda-time。 maven地址:http://search.maven.org/#search%7Cga%7C1%7Cjoda 阅读全文
posted @ 2016-02-25 15:53 狂奔的小狮子 阅读(658) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 41 下一页