android
文章平均质量分 75
jeff2016yang
初步学习
展开
-
Sqlite
sqlite基本使用: 创建一个类是实现SQLiteOpenHelper类: 重写里面的三个方法: public class Mydb extends SQLiteOpenHelper{ public Mydb(Context context) { super(context, DBFinal.DB_NAME, null, DBFinal.DB_VERSION); }原创 2016-07-28 11:07:02 · 241 阅读 · 0 评论 -
android Service的启动方式和重复绑定
重复绑定的条件: onUnbind(Intent intent);方法返回值为true. 服务中没有onDestroy();方法。原创 2016-05-21 10:08:30 · 3836 阅读 · 0 评论 -
could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037
could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 问题: daemon not running. starting it now on port 5037 error: could not install smartsocket listener: cannot bind转载 2016-08-03 08:34:30 · 383 阅读 · 0 评论 -
android知识点总结
一、四大组件 Activity (生命周期可编辑onResume和可见onStart,不可编辑onPause和不可见onStop)、Service (AIDL,开始方式)、BroadcastReceived(有序,无序) 、ContentProvider(Uri) 二、五大布局 LinearLayout 、RelativeLayout(降低布局嵌套) 、FreamLay转载 2016-08-21 18:13:19 · 277 阅读 · 0 评论 -
已集成第三方开源组件:
已集成第三方开源组件: 网络请求库android-async-http 图片异步加载库universal-image-loader Sqlite数据库操作ormlite-android 社会化分享ShareSDK+短信验证码 Zxing二维码库 百度地图定位SDK 谷歌依赖注入库RoboGuice WebService调用库ksoap2 XML解析XStream 动画开源库转载 2016-08-21 18:26:34 · 416 阅读 · 0 评论 -
Butterknife的简单使用
github连接:https://github.com/JakeWharton/butterknife 本文使用的butterknife版本7.0.1 butterknife:使用依赖注入的方式为你的Android views绑定字段方法。 1控件绑定 通过使用@bind和一个资源ID,butterknife会自动绑定到layout中声明资源。textview为例转载 2016-08-11 08:30:40 · 232 阅读 · 0 评论 -
Android应用Design Support Library完全使用实例
1 背景 上周一年一度的Google IO全球开发者大会刚刚结束,Google在Android这块除过一些优化没有太大亮点。在Android Developer和Android Developer Blog上看了下相关介绍,Google升级了新的Support Library。所以在这里我们就来率先体验一把吧(这篇文章再草稿箱呆了三四天了。。。。终于有时间让她见天日了)。 先看一下De转载 2016-08-11 08:40:59 · 244 阅读 · 0 评论 -
Android5.0新控件CardView的介绍和使用
Android5.0新控件CardView的介绍和使用 CardView也是5.0的新控件,这控件其实就是一个卡片啦,当然我们自己也完全可以定义这样一个卡片,从现在的微博等社App中可以看到各式各样的自定义卡片,所以这个控件意义不是很大。support中的view所以使用在布局里面的时候一下子看不到效果的,比较不好。CardView继承的是FrameLayout,所以摆放转载 2016-08-11 08:46:39 · 801 阅读 · 0 评论 -
CircularImageView
CircularImageView Custom view for circular images in Android while maintaining the best draw performance Usage To make a circular ImageView, add this CircularImageView library to your pro转载 2016-08-12 08:08:16 · 392 阅读 · 0 评论