How to easily “Show Layout bounds” for Android debugging?

后端 未结 5 1855
伪装坚强ぢ
伪装坚强ぢ 2021-02-01 21:31

I want to watch the layout of App without boring tap and tap.


I tried adb shell setprop debug.layout true but didn\'t work unless re

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 22:04

    You don't need to start the settings app. Just exit your app, set the property, and start your app.

    adb shell am force-stop com.company.appname ; adb shell setprop debug.layout true ; adb shell monkey -p com.company.appname -c android.intent.category.LAUNCHER 1
    

提交回复
热议问题