可以使用Espresso测试小部件
答
编号
意式浓缩咖啡是用来在活动过程中运行测试。小部件属于主屏幕(应用程序)。
UI automator可能是测试小部件的解决方案(https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html)
谢谢!挖掘文档 –