再也不用再代码中打印了
在cmd中输入
adb shell dumpsys window | findstr mCurrentFocus
即可
如果想知道当前页面有哪些Fragment则
在cmd中输入
adb shell dumpsys activity 包名
也可以不用包名,而直接使用"top"选项:
adb shell dumpsys activity top
再也不用再代码中打印了
在cmd中输入
adb shell dumpsys window | findstr mCurrentFocus
即可
如果想知道当前页面有哪些Fragment则
在cmd中输入
adb shell dumpsys activity 包名
也可以不用包名,而直接使用"top"选项:
adb shell dumpsys activity top