Home > Mobile >  How to identify the contents of the non-native controls on the android
How to identify the contents of the non-native controls on the android

Time:02-21


As shown in figure, this is bobby wisdom garden/app a interface, XML is obtained by the adb dump interface structure of the UI below
 
<? The XML version='1.0' encoding="utf-8" standalone='yes'?>







Obviously, XML can't see the "update now" and "upgrade" later two buttons text, can only see the corresponding controls two clickable="true", the text property is empty,
Think excuse me, what should use the framework or method can identify the text to the button?
The above is just an example, including other similar app also has this kind of situation, hope to have a general approach to identifying, rather than a customized approach, thanks!

CodePudding user response:

See a name that sounds like the native, may this is the picture of resources into background,

CodePudding user response:

Indicates that this control is a LLinearLayout;
Find button if you like, so, because the button control in the android under this package, or androidX below, anyway, is the Buttom at the end of the controls,
Because XML text can be referenced by the form of a reference resource file resources, so the "update now" and "upgrade" later two buttons text, could not see
  • Related