会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
熠然
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
25
26
27
28
29
30
31
32
33
···
38
下一页
2015年7月14日
Android开发UI之Fragment-Tabbed Activity的使用
摘要: 使用ADT新建的时候,可以选择Tabbed Activity,选择新建一个工程。新建的工程中,选择不同的Tab页显示不同的内容,主要是通过SectionsPagerAdapter类中的Fragment getItem(int position)方法实现的。Tabbed Activity快速使用:1....
阅读全文
posted @ 2015-07-14 09:06 熠然
阅读(5436)
评论(0)
推荐(1)
2015年7月13日
Android开发UI之布局文件LinearLayout
摘要: LinearLayout-线性布局,该布局中的控件按照水平方向排列或者竖直方向排列。通过属性android:orientation=""决定的,可选值:vertical和horizontal。同时有一个比重属性,android:layout_weight="",可以通过填写每个控件的比重,获取控件在...
阅读全文
posted @ 2015-07-13 22:49 熠然
阅读(228)
评论(0)
推荐(0)
Android开发UI之Navigation Drawer
摘要: http://blog.csdn.net/xyz_lmn/article/details/12523895
阅读全文
posted @ 2015-07-13 17:04 熠然
阅读(191)
评论(0)
推荐(0)
Android开发之Fragment的介绍、使用及生命周期
摘要: Fragment官网介绍-http://developer.android.com/guide/components/fragments.html郭大神的使用实例文章:http://blog.csdn.net/sinyu890807/article/details/131711911.Fragmen...
阅读全文
posted @ 2015-07-13 11:59 熠然
阅读(550)
评论(0)
推荐(0)
2015年7月12日
Android开发之permission
摘要: permission,Android权限系统。基本上都是在manifest.xml文件中进行操作。1.申请使用权限申请使用权限使用标记:比如申请使用网络权限:2.申明一个权限申明权限使用标记:然后不同的组件使用该权限的时候需要申请,依旧使用:比如:我在一个app中申明了一个权限:我在另外一个app中...
阅读全文
posted @ 2015-07-12 17:44 熠然
阅读(342)
评论(0)
推荐(0)
2015年7月11日
Android开发之BroadcastReceiver的使用
摘要: 1.静态注册。在manifest中注册。1 然后在activity中使用sendBroadcast(Intent)方法。其中参数是Intent.1 Intent intent=new Intent(this,MyReceiver.class);2 intent.putExtra("data", "e...
阅读全文
posted @ 2015-07-11 22:33 熠然
阅读(1897)
评论(0)
推荐(0)
Android开发之通过Intent启动其他App的Service
摘要: 在Android5.0以前可以通过隐式Intent方式启动其他App的Service,就跟Activity启动隐式Intent一样的。但是在5.0以后,只能使用显示的Intent方式启动了。启动其他App的Service,需要用到Intent的setComponent()方法。该方法需要传入Comp...
阅读全文
posted @ 2015-07-11 17:50 熠然
阅读(6061)
评论(0)
推荐(0)
Android开发之bindService()侦听service内部状态
摘要: 在Android开发之bindService()通信的基础上,实现bindService()方法侦听service内部状态。实现侦听service内部状态,使用的是回调机制1.首先实现一个接口1 public static interface CallBack{2 void...
阅读全文
posted @ 2015-07-11 16:15 熠然
阅读(1211)
评论(0)
推荐(0)
Android 开发之 bindService() 通信
摘要: Service 启动方式有两种 startService(intent) bindService(intent,conn,Context.BIND_AUTO_CREATE) startService(intent) 生命周期: onCreate()- >onStartCommand()->start
阅读全文
posted @ 2015-07-11 15:34 熠然
阅读(9245)
评论(0)
推荐(0)
Android开发之异步消息处理机制AsyncTask
摘要: 转自:Android AsyncTask完全解析,带你从源码的角度彻底理解 另外一篇比较详细的博文:http://blog.csdn.net/liuhe688/article/details/6532519 http://stackoverflow.com/questions/9671546/asy
阅读全文
posted @ 2015-07-11 13:13 熠然
阅读(731)
评论(0)
推荐(0)
上一页
1
···
25
26
27
28
29
30
31
32
33
···
38
下一页
公告