• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Hierarchy viewer
 

Hierarchy viewer

on

  • 605 views

Hierarchy Viewer tool in android. ppt discusses the advantages of using this tool with an example.

Hierarchy Viewer tool in android. ppt discusses the advantages of using this tool with an example.

Statistics

Views

Total Views
605
Views on SlideShare
605
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Hierarchy viewer Hierarchy viewer Presentation Transcript

    • Hierarchy Viewer
    • What is Hierarchy Viewer ? ● It's a tool. <Android SDK>/tools ● Layout performance analyzer. ● Works ONLY with developer version of android.
    • How to use it ? 1. Connect device / Start Emulator. 2. Launch your app. 3. From terminal, run hierarchyviewer. <Android SDK>/tools $ hierarchyviewer
    • Demo App
    • UI
    • Hierarchy Viewer Window Load View Hierarchy Foreground Activity Go to pixel perfect window
    • Layout Hierarchy Tree Overview Pane Property View Pane Tree View Pane Tree Overview Pane
    • Individual View Info
    • DEMO I
    • Adapter View I <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"> <ImageView android:id="@+id/pic" /> <LinearLayout android:id="@+id/Description"> <LinearLayout android:id="@+id/Data"> <TextView android:id="@+id/title"/> <TextView android:id="@+id/date"/> </LinearLayout> <TextView android:id="@+id/info"/> </LinearLayout> <ImageButton android:id="@+id/more"/> </LinearLayout>
    • ListView Adapter View
    • DEMO II
    • Adapter View II <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"> <ImageView android:id="@+id/pic" android:layout_alignParentLeft="true"/> <TextView android:id="@+id/title" android:layout_alignTop="@+id/pic" android:layout_toRightOf="@+id/pic"/> <TextView android:id="@+id/date" android:layout_alignParentRight="true" android:layout_alignTop="@+id/pic"/> <TextView android:id="@+id/info" android:layout_below="@+id/title" android:layout_toRightOf="@+id/pic"/> <ImageView android:id="@+id/more" android:layout_alignParentRight="true" android:layout_centerVertical="true"/> </RelativeLayout>
    • ListView Adapter View
    • Conclusion ListView Adapter View 57.621 ms 4.52 ms 38.334 ms 3.673 ms DEMO I DEMO II ● Easy to use. ● Boosts design and analysis. ● Increases UI performance.
    • Thank U. Badrinath Kulkarni www.ibadrinath.in Twitter : @iBadrinath