SlideShare uma empresa Scribd logo
1 de 44
Baixar para ler offline
DESIGNING
                  FOR ANDROID
                          A short introduction




Saturday, January 5, 13
HELLO!
             I am Anjan Shrestha
              I am UX lead at YoungInnovations




Saturday, January 5, 13
TODAY
                 we will be making this app ...




Saturday, January 5, 13
Saturday, January 5, 13
And I will be talking about

                DESIGN BITS

Saturday, January 5, 13
The simple flow

                     Objective         Requirement    Mockups
                          of the app     collection




                                                       User
                                        Coding &      Interface
                                        development



Saturday, January 5, 13
THE MOCKUPS




Saturday, January 5, 13
MOCKUPS ARE FOLLOWED BY

                 UI DESIGNS

Saturday, January 5, 13
BUT WAIT!
                 Before you move on




Saturday, January 5, 13
TERMINOLOGIES
                 You should know




Saturday, January 5, 13
1

                          RESOLUTION


Saturday, January 5, 13
1

                          RESOLUTION
               The total number of physical pixels on a screen.




Saturday, January 5, 13
1               480




                          RESOLUTION
                                  EXAMPLE:
                                             800



               The total number of physical pixels on a screen.
                                                   Resolution
                                                    480X800



Saturday, January 5, 13
2

                  SCREEN DENSITY


Saturday, January 5, 13
2

                  SCREEN DENSITY
          The number of pixels in a physical area of a screen.




Saturday, January 5, 13
2

                  SCREEN DENSITY
          The number of pixels in a physical area of a screen.
                                  MEASURED AS

                          number of dots in an inch
                                   or simply ...
Saturday, January 5, 13
Dots Per Inch


                          DPI
Saturday, January 5, 13
ldpi        = 120
                                                 (low)




                                         Dots Per Inch
 320 =                    xhdpi
                          (extra high)
                                         DPI     4
                                         Basic Screen Densities
                                                                  mdpi
                                                                  (medium)
                                                                             = 160




                                                hdpi         = 240
                                                  (high)

Saturday, January 5, 13
There’s


                                 tvdpi          = 213 (approx.)

                                    as well.



                          But we’ll skip it for today ;)




Saturday, January 5, 13
3

                            DENSITY-
                          INDEPENDENT
                            PIXEL (DP)
Saturday, January 5, 13
3

                            DENSITY-
                          INDEPENDENT
                            PIXEL (DP)
                          Defining layout in a ...
Saturday, January 5, 13
Defining layout in a ...
                                    3
                            DENSITIY
                          independent
                              way
Saturday, January 5, 13
3
                           WHAT DOES
                          THIS MEAN IN
                          PIXELS?


Saturday, January 5, 13
3

                          1DP = 1PX
                                on a mdpi
                                 (160 dpi) screen




Saturday, January 5, 13
3
                          pixels = DP*(DPI/160)




Saturday, January 5, 13
That means
                                          3
            48px               is equivalent to
               in mdpi (160)
                                          48*240/160

                                     ie   72px
                                          in hdpi (240)


Saturday, January 5, 13
which means
                              3
                             YOU
                            MUST
                           DELIVER
                          BITMAPS
                          FOR ALL 4
                          SCREEN DENSITIES
Saturday, January 5, 13
which means
                                                3
                                        a 48px icon
                                     should have 4 versions


                     36px 48px 72px 96px
                          for ldpi   for mdpi       for hdpi   for xhdpi




Saturday, January 5, 13
if you think that’s a hassle,
            we’ve built a simple app
                                     3
            that calculates dp for a
            desired screen density


             dp
             calculator
            go ahead and search for it
            in Google Play store.
Saturday, January 5, 13
for defining
                          TEXT 3SIZE,
                              use

                           SP
Saturday, January 5, 13
for defining
                          TEXT 3SIZE,
                              use

                           SP?
Saturday, January 5, 13
3
                           SP = Scalable Pixel

                          SP = DP * Scale
                                        This scale can be used
                                        by people who need
                                        larger font sizes, for
                                        example, to use device
                                        more comfortably.




Saturday, January 5, 13
3
                                SP = Scalable Pixel

                             SP = DP * Scale
       SP is similar to Dp
                                 except that
                          SP can also be scaled by the user's
                          font size preference.

Saturday, January 5, 13
FEW NOTES


      Start by designing for a mdpi (160)
      screen

      mdpi (160) = Baseline Screen

      Scale bitmaps up or down for every
      other screen densities

Saturday, January 5, 13
lets move on to
                UI DESIGN
                        now


Saturday, January 5, 13
Saturday, January 5, 13
ANDROID
             DESIGN PATTERNS


Saturday, January 5, 13
ACTION BAR




        NAVIGATION BAR
Saturday, January 5, 13
Up
                          Up vs Back




               Home
               Screen




                                       Back
Saturday, January 5, 13
FOR MORE ANDROID DESIGN PATTERNS
                 see here:

                 http://developer.android.com/design/patterns/index.html




Saturday, January 5, 13
a little bit on

             ANDROID
             ICONOGRAPHY


Saturday, January 5, 13
CREATE
                 LAUNCHER ICONS
                 IN FOLLOWING DIMENSIONS




          36*36px             48*48px         72*72px            96*96px
            (for ldpi)         (for mdpi)     (for hdpi)         (for hdpi)



                    Launcher icon appear on the Home or All Apps screen of
                    android.


Saturday, January 5, 13
FOR MORE ANDROID ICONOGRAPHY
                 see here:

                 http://developer.android.com/design/style/iconography.html




Saturday, January 5, 13
THANK
                 YOU!!
                 anjan.shrestha@gmail.com
                 http://anjhero.me
Saturday, January 5, 13

Mais conteúdo relacionado

Último

The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Kuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialKuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialJoão Esperancinha
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessWSO2
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsYoss Cohen
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfAarwolf Industries LLC
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...itnewsafrica
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sectoritnewsafrica
 

Último (20)

The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Kuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialKuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorial
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platforms
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdf
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
 

Designing for android

  • 1. DESIGNING FOR ANDROID A short introduction Saturday, January 5, 13
  • 2. HELLO! I am Anjan Shrestha I am UX lead at YoungInnovations Saturday, January 5, 13
  • 3. TODAY we will be making this app ... Saturday, January 5, 13
  • 5. And I will be talking about DESIGN BITS Saturday, January 5, 13
  • 6. The simple flow Objective Requirement Mockups of the app collection User Coding & Interface development Saturday, January 5, 13
  • 8. MOCKUPS ARE FOLLOWED BY UI DESIGNS Saturday, January 5, 13
  • 9. BUT WAIT! Before you move on Saturday, January 5, 13
  • 10. TERMINOLOGIES You should know Saturday, January 5, 13
  • 11. 1 RESOLUTION Saturday, January 5, 13
  • 12. 1 RESOLUTION The total number of physical pixels on a screen. Saturday, January 5, 13
  • 13. 1 480 RESOLUTION EXAMPLE: 800 The total number of physical pixels on a screen. Resolution 480X800 Saturday, January 5, 13
  • 14. 2 SCREEN DENSITY Saturday, January 5, 13
  • 15. 2 SCREEN DENSITY The number of pixels in a physical area of a screen. Saturday, January 5, 13
  • 16. 2 SCREEN DENSITY The number of pixels in a physical area of a screen. MEASURED AS number of dots in an inch or simply ... Saturday, January 5, 13
  • 17. Dots Per Inch DPI Saturday, January 5, 13
  • 18. ldpi = 120 (low) Dots Per Inch 320 = xhdpi (extra high) DPI 4 Basic Screen Densities mdpi (medium) = 160 hdpi = 240 (high) Saturday, January 5, 13
  • 19. There’s tvdpi = 213 (approx.) as well. But we’ll skip it for today ;) Saturday, January 5, 13
  • 20. 3 DENSITY- INDEPENDENT PIXEL (DP) Saturday, January 5, 13
  • 21. 3 DENSITY- INDEPENDENT PIXEL (DP) Defining layout in a ... Saturday, January 5, 13
  • 22. Defining layout in a ... 3 DENSITIY independent way Saturday, January 5, 13
  • 23. 3 WHAT DOES THIS MEAN IN PIXELS? Saturday, January 5, 13
  • 24. 3 1DP = 1PX on a mdpi (160 dpi) screen Saturday, January 5, 13
  • 25. 3 pixels = DP*(DPI/160) Saturday, January 5, 13
  • 26. That means 3 48px is equivalent to in mdpi (160) 48*240/160 ie 72px in hdpi (240) Saturday, January 5, 13
  • 27. which means 3 YOU MUST DELIVER BITMAPS FOR ALL 4 SCREEN DENSITIES Saturday, January 5, 13
  • 28. which means 3 a 48px icon should have 4 versions 36px 48px 72px 96px for ldpi for mdpi for hdpi for xhdpi Saturday, January 5, 13
  • 29. if you think that’s a hassle, we’ve built a simple app 3 that calculates dp for a desired screen density dp calculator go ahead and search for it in Google Play store. Saturday, January 5, 13
  • 30. for defining TEXT 3SIZE, use SP Saturday, January 5, 13
  • 31. for defining TEXT 3SIZE, use SP? Saturday, January 5, 13
  • 32. 3 SP = Scalable Pixel SP = DP * Scale This scale can be used by people who need larger font sizes, for example, to use device more comfortably. Saturday, January 5, 13
  • 33. 3 SP = Scalable Pixel SP = DP * Scale SP is similar to Dp except that SP can also be scaled by the user's font size preference. Saturday, January 5, 13
  • 34. FEW NOTES Start by designing for a mdpi (160) screen mdpi (160) = Baseline Screen Scale bitmaps up or down for every other screen densities Saturday, January 5, 13
  • 35. lets move on to UI DESIGN now Saturday, January 5, 13
  • 37. ANDROID DESIGN PATTERNS Saturday, January 5, 13
  • 38. ACTION BAR NAVIGATION BAR Saturday, January 5, 13
  • 39. Up Up vs Back Home Screen Back Saturday, January 5, 13
  • 40. FOR MORE ANDROID DESIGN PATTERNS see here: http://developer.android.com/design/patterns/index.html Saturday, January 5, 13
  • 41. a little bit on ANDROID ICONOGRAPHY Saturday, January 5, 13
  • 42. CREATE LAUNCHER ICONS IN FOLLOWING DIMENSIONS 36*36px 48*48px 72*72px 96*96px (for ldpi) (for mdpi) (for hdpi) (for hdpi) Launcher icon appear on the Home or All Apps screen of android. Saturday, January 5, 13
  • 43. FOR MORE ANDROID ICONOGRAPHY see here: http://developer.android.com/design/style/iconography.html Saturday, January 5, 13
  • 44. THANK YOU!! anjan.shrestha@gmail.com http://anjhero.me Saturday, January 5, 13