Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Material Design: Grids & Keylines

Android Material Design: Grids & Keylines

Ragunath Jawahar

October 28, 2016
Tweet

More Decks by Ragunath Jawahar

Other Decks in Programming

Transcript

  1. Dependencies allprojects {  //  build.gradle (root) repositories  { maven  {

     url "https://jitpack.io" } } } dependencies  {  //  build.gradle (module) debugCompile 'com.github.ragunathjawahar.keylines:sdk:0.1-­‐preview' releaseCompile 'com.github.ragunathjawahar.keylines:sdk-­‐no-­‐op:0.1-­‐preview' testCompile 'com.github.ragunathjawahar.keylines:sdk-­‐no-­‐op:0.1-­‐preview’ }
  2. Spec { "keylines":  [ {  "offset":  16,  "from":  "LEFT" },

    {  "offset":  72,  "from":  "LEFT" }, {  "offset":  16,  "from":  "RIGHT" } ], "spacings":  [ {  "offset":  0,  "size":  16,  "from":  "LEFT" }, {  "offset":  56,  "size":  16,  "from":  "LEFT" }, {  "offset":  0,  "size":  16,  "from":  "RIGHT" } ] }
  3. Future •Multiple Fragments •DSL with a higher-level of abstraction •Metrics

    •Typography •Specs to Views •Ratio keylines and other elements