AI智能
改变未来

标签:Android开发

第62页
android studio 常用快捷键-爱站程序员基地
Android开发

android studio 常用快捷键

AI

1)整行代码上下移动:command+shift+向上箭头/向下箭头 (2)整行代码复制: command+d(想复制哪行,将光标放在哪行,点击这个快捷键就会在当前行的下一行生成复制行) (3)整行代码剪切复制:command+x/comm...

android eventbus通信-爱站程序员基地
Android开发

android eventbus通信

AI

添加依赖 implementation ‘org.greenrobot:eventbus:3.0.0’ 通信管理类 import org.greenrobot.eventbus.EventBus;public class EventBusU...

Android LifeCycle监控生命周期-爱站程序员基地
Android开发

Android LifeCycle监控生命周期

AI

LifeCycle的作用是感知组件(Activity/Fragment)的生命周期 , 并在合适的生命周期执行分配的任务. 1.监听组件生命后期 假设我们此时有一个Util类,其中有两个方法需要分别在Activity的onStart和onD...