Home > Mobile >  On the textview about uiautomator naf attribute access to content is True
On the textview about uiautomator naf attribute access to content is True

Time:10-04

In the new version of WeChat, I want to use uiautomator access to content, but the use of uiautomatorview, found naf attribute to True, then the content back to hide,
Is there any way to change uiautomator on the phone. Odex, let it become a display content?
In uiautomator source, AccessibilityNodeInfoDumper. Java, a judgment on
 private static Boolean nafCheck (AccessibilityNodeInfo node) {
Boolean isNaf=node. IsClickable () & amp; & Node. IsEnabled ()
& & SafeCharSeqToString (node getContentDescription ()). The isEmpty ()
& & SafeCharSeqToString (node. The getText ()). The isEmpty ();

if (! IsNaf)
return true;

//check the children since sometimes the containing element is clickable
//and NAF but a child 's text or the description is available. Will assume
//to layout as fine.
Return childNafCheck (node);
}

To modify this part, if we can show the textview naf content attribute is True?
I'm not going to JAVA, I just read some code,
Please help me to solve,
thank you

CodePudding user response:

Install a talkbak enabled can get to the auxiliary function, not qq996834316 please contact me.

CodePudding user response:

The problem isn't NAF


Said his side is, when a control can click, have shown that no words, no description text check, if he's all child controls without words, and there is no description text, this control is a control NAF

So since the start node capture page, is partly blocked
  • Related