Hierarchyviewer Cant't Inspect Layout In Popupwindow
I'm using ViewServer to inspect layout in my app.I click a button and it shows a PopupWindow as Dropdown. But I can't see the popup window layout in HierarchyViewer. Any help?
Solution 1:
After showing the window, add the below statement and relaunch HierarchyViewer. It should show a your pop window contents.
ViewServer.get(context).addWindow(popupWindow.getContentView(), "popup");
On your onDismissListener, add the following statement to remove the views from hierarchyviewer.
ViewServer.get(context).removeWindow(window.getContentView());
Post a Comment for "Hierarchyviewer Cant't Inspect Layout In Popupwindow"