मैं आपके सवाल का पढ़ा है, मैं अच्छा जवाब नहीं है, लेकिन मेरी पहली प्रतिक्रिया मैं logcat देखने के लिए थक गया जब मैं HierarchyViewer शुरू करने और यह है कि क्या मैं बहुत ही दिलचस्प (आधा सड़क) में पाया गया है:
1873-21873/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-16 20:10:37.246 21873-21873/? D/AndroidRuntime: CheckJNI is OFF
01-16 20:10:37.283 21873-21873/? D/ICU: No timezone override file found: /data/local/tmp/misc/zoneinfo/current/icu/icu_tzdata.dat
01-16 20:10:37.341 21873-21873/? I/Radio-JNI: register_android_hardware_Radio DONE
01-16 20:10:37.361 21873-21873/? D/AndroidRuntime: Calling main entry com.android.commands.uiautomator.Launcher
01-16 20:10:38.551 21873-21873/? I/AccessibilityNodeInfoDumper: Skipping invisible child: [email protected]; boundsInParent: Rect(0, 0 - 1412, 1692); boundsInScreen: Rect(0, 322 - -13, 2014); packageName: com.google.android.googlequicksearchbox; className: android.view.ViewGroup; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: null; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: true; longClickable: true; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_CLICK - null, AccessibilityAction: ACTION_LONG_CLICK - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
01-16 20:10:38.582 21873-21873/? I/AccessibilityNodeInfoDumper: Skipping invisible child: [email protected]; boundsInParent: Rect(0, 0 - 324, 380); boundsInScreen: Rect(312, 1676 - 636, 2014); packageName: com.google.android.googlequicksearchbox; className: android.view.View; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: null; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
01-16 20:10:38.583 21873-21873/? I/AccessibilityNodeInfoDumper: Skipping invisible child: [email protected]; boundsInParent: Rect(0, 0 - 1412, 1692); boundsInScreen: Rect(1454, 322 - 1440, 2014); packageName: com.google.android.googlequicksearchbox; className: android.view.ViewGroup; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: null; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: true; longClickable: true; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_CLICK - null, AccessibilityAction: ACTION_LONG_CLICK - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
01-16 20:10:38.584 21873-21873/? I/AccessibilityNodeInfoDumper: Skipping invisible child: [email protected]; boundsInParent: Rect(0, 0 - 0, 0); boundsInScreen: Rect(28, 112 - 28, 112); packageName: com.google.android.googlequicksearchbox; className: android.view.View; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: com.google.android.googlequicksearchbox:id/dummy_focus_view; checkable: false; checked: false; focusable: true; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_FOCUS - null, AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
01-16 20:10:38.586 21873-21873/? I/AccessibilityNodeInfoDumper: Skipping invisible child: [email protected]; boundsInParent: Rect(0, 0 - 182, 182); boundsInScreen: Rect(0, 84 - 182, 266); packageName: com.google.android.googlequicksearchbox; className: android.view.View; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: com.google.android.googlequicksearchbox:id/focus_indicator; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
01-16 20:10:38.591 21873-21873/? I/AccessibilityNodeInfoDumper: Skipping invisible child: [email protected]; boundsInParent: Rect(0, 0 - 42, 42); boundsInScreen: Rect(668, 2053 - 689, 2074); packageName: com.google.android.googlequicksearchbox; className: android.widget.ImageView; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: com.google.android.googlequicksearchbox:id/active; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
01-16 20:10:38.592 21873-21873/? I/AccessibilityNodeInfoDumper: Skipping invisible child: [email protected]; boundsInParent: Rect(0, 0 - 42, 42); boundsInScreen: Rect(699, 2042 - 741, 2084); packageName: com.google.android.googlequicksearchbox; className: android.widget.ImageView; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: com.google.android.googlequicksearchbox:id/inactive; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
01-16 20:10:38.592 21873-21873/? I/AccessibilityNodeInfoDumper: Skipping invisible child: [email protected]; boundsInParent: Rect(0, 0 - 42, 42); boundsInScreen: Rect(752, 2053 - 773, 2074); packageName: com.google.android.googlequicksearchbox; className: android.widget.ImageView; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: com.google.android.googlequicksearchbox:id/active; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
01-16 20:10:38.593 21873-21873/? I/AccessibilityNodeInfoDumper: Skipping invisible child: [email protected]; boundsInParent: Rect(0, 0 - 324, 350); boundsInScreen: Rect(1172, 2126 - 1440, 2392); packageName: com.google.android.googlequicksearchbox; className: android.view.View; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: null; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_UNKNOWN - null]
01-16 20:10:38.596 21873-21873/? W/AccessibilityNodeInfoDumper: Fetch time: 111ms
इसलिए यदि आप logcat पढ़ आप उपकरण एक नई प्रक्रिया com.android.internal.os.RuntimeInit तो इस प्रक्रिया में कुछ args
(मुख्य विधि में के स्रोत कोड लांचर देखें) के बाद कि लांचर रन एक साथ com.android.commands.uiautomator.Launcher कॉल करने कि मिल जाएगा निर्दिष्ट कमांड वें लॉन्चर व्यू के दृश्यों को डंप पर (लॉगकैट देखें)।
मुझे आशा है कि आप मदद लेकिन अधिक जानकारी और शोध :)
जानकारी के लिए धन्यवाद ... इसका मतलब है कि "विंडो प्रबंधक" के पास वर्तमान विंडो के सभी दृश्यों तक पहुंच है .. फिर पदानुक्रम दृश्य केवल कुछ गुण दिखाता है लेकिन सभी नहीं। उदाहरण के लिए यदि व्यू टेक्स्टव्यू है .. तो पदानुक्रम क्यों नहीं है व्यूअर टेक्स्टकॉलर, पृष्ठभूमि रंग, पैडिंग इत्यादि भी दिखाता है ... लेकिन यह केवल टेक्स्ट, क्लिक करने योग्य, सक्षम इत्यादि दिखाता है ... – user3265443
आधिकारिक दस्तावेज देखें [यहां] (http://developer.android.com/tools/performance/hierarchy-viewer/index.html), इसमें दृश्य के लिए सभी उपलब्ध गुण हैं। बिंदु 15 और 16 देखें, यह आपको दृश्य के सभी विवरण प्रदान करने में सक्षम होगा। – sandeep
मैं [व्यूसेवर] (https://github.com/romainguy/ViewServer) का उपयोग कर अपने स्वयं के ऐप के लिए केवल पदानुक्रम चला सकता हूं। यदि मैं अन्य ऐप्स के लिए डीबग मोड चालू है तो क्या मैं पदानुक्रम दृश्य चला सकता हूं? above..just के लिए – user3265443