Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Uiautomator 中选择单选按钮?
例如:我有一个单选按钮来打开我的 LG 手机中的无线。如何选择这些单选按钮。
请用
UiObject dataValue = new UiObject(new UiSelector().className(RadioButton.class.getName()).index(0)); dataValue.click();