
Android
文章平均质量分 76
AndroidCai
just fighting
展开
-
Application.ActivityLifecycleCallbacks的使用方法
ActivityLifecycleCallbacks是什么?Application通过此接口提供了一套回调方法,用于让开发者可以对Activity的生命周期事件进行集中处理。使用示例:在自己实现的Application的onCreate方法中使用以下代码//需要API14+if(Build.VERSION.SDK_INT > 14) {registerActiv原创 2016-01-16 15:30:56 · 2313 阅读 · 0 评论 -
Google示例ElevationDrag的源码分析
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo原创 2016-05-11 11:36:07 · 464 阅读 · 0 评论 -
Google示例SlidingTabsColors分析
/* * Copyright 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma原创 2016-05-09 15:41:23 · 966 阅读 · 0 评论 -
googles示例RecyclerView
/** Copyright (C) 2014 The Android Open Source Project** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may原创 2016-05-09 17:03:11 · 1062 阅读 · 0 评论