opt: layout inspector view

This commit is contained in:
hyb1996
2017-12-09 12:36:43 +08:00
parent 6128aa28a6
commit 0e6616c1dc
5 changed files with 25 additions and 19 deletions

View File

@@ -50,9 +50,11 @@ public class NodeInfo {
public boolean checkable;
public boolean focused;
public boolean visibleToUser;
public int indexInParent;
public NodeInfo parent;
public NodeInfo(UiObject node, NodeInfo parent) {
id = simplifyId(node.getViewIdResourceName());
desc = node.desc();
@@ -87,6 +89,7 @@ public class NodeInfo {
node.getBoundsInScreen(mBoundsInScreen);
node.getBoundsInParent(mBoundsInParent);
bounds = boundsToString(mBoundsInScreen);
indexInParent = node.indexInParent();
this.parent = parent;