<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-designer-developing-for-android-fwxaqyhtd" -->

---
title: A designer developing for Android | daily.dev
description: A designer shares practical lessons from building an Android app for the first time, coming from a Sketch-based design workflow. Covers using colors.xml,...
canonical: https://daily.dev/posts/a-designer-developing-for-android-fwxaqyhtd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A designer developing for Android | daily.dev
og:description: A designer shares practical lessons from building an Android app for the first time, coming from a Sketch-based design workflow. Covers using colors.xml,...
og:url: https://daily.dev/posts/a-designer-developing-for-android-fwxaqyhtd
og:image: https://api.daily.dev/og/posts/FwXAqYHTd.png
og:image:alt: A designer developing for Android
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A designer developing for Android

**[Eric Bailey](https://daily.dev/sources/ericwbailey)** · 10 min read · 0 upvotes · 0 comments

## Summary

A designer shares practical lessons from building an Android app for the first time, coming from a Sketch-based design workflow. Covers using colors.xml, dimens.xml, styles.xml, and strings.xml to abstract colors, spacing, and text; explains density-independent and scale-independent pixels; discusses commenting/prefixing conventions; and compares Android Studio's Design view, emulator, and physical device testing for reducing drift between design files and implementation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://robots.thoughtbot.com/a-designer-developing-for-android>

## Questions this post answers

### How do I abstract color values in an Android app using colors.xml?

Define named colors in colors.xml, such as a color called sunset represented as a hex value, then reference it elsewhere with @color/ followed by the name. This keeps color usage consistent and centralized, similar to Sass variables or CSS custom properties, and avoids declaring color values inline throughout the codebase.

_Developers standardizing Android styling patterns can find more implementation details on daily.dev._

### What is the difference between density-independent pixels (dp) and scale-independent pixels (sp) in Android?

Density-independent pixels (dp) are a measurement unit that lets Android draw UI elements proportionately across devices with different display sizes and densities, similar to CSS viewport units. Scale-independent pixels (sp) work the same way but are used specifically for type, additionally scaling with a user's font size preference for accessibility.

_Anyone porting a design system to Android can weigh these unit choices with resources on daily.dev._

### How do I keep spacing values consistent across an Android app's UI?

Codify spacing as named dimension values in dimens.xml, such as spacing_tiny at 2dp or spacing_smaller at 8dp, rather than hardcoding measurements throughout the layout. For distances with specific meaning, like a sticky footer's padding, use semantic names such as sticky_footer_spacing so the intent behind the value is clear to future developers.

_Teams translating Sketch specs into Android layouts can track patterns like this on daily.dev._

## Similar posts on daily.dev

- [Get inspired and take your apps to desktop](https://daily.dev/posts/get-inspired-and-take-your-apps-to-desktop-z1fedzdef) · Android Developers Blog · 2 upvotes · 0 comments
- [The Modern Guide to Android SDK Development: Architecture & API Design \(Part 1 of 3\)](https://daily.dev/posts/the-modern-guide-to-android-sdk-development-architecture-api-design-part-1-of-3--97izvnm7x) · ProAndroidDev · 2 upvotes · 0 comments
- [Android App Building: Key Things Businesses Should Know](https://daily.dev/posts/android-app-building-key-things-businesses-should-know-vxmcfp9rh) · Medium · 0 upvotes · 0 comments
- [What I Learned While Building an Android SDK: Architecture, Pitfalls & Best Practices](https://daily.dev/posts/what-i-learned-while-building-an-android-sdk-architecture-pitfalls-best-practices-2q3zgnfjd) · droidcon · 3 upvotes · 0 comments

---

Tags: [#android](https://daily.dev/tags/android), [#design-systems](https://daily.dev/tags/design-systems), [#android-studio](https://daily.dev/tags/android-studio)

[View this post on daily.dev](https://daily.dev/posts/a-designer-developing-for-android-fwxaqyhtd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A designer developing for Android","url":"https://daily.dev/posts/a-designer-developing-for-android-fwxaqyhtd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-designer-developing-for-android-fwxaqyhtd"},"datePublished":"2026-09-20T07:44:24.563Z","dateModified":"2026-09-20T07:47:54.480Z","description":"A designer shares practical lessons from building an Android app for the first time, coming from a Sketch-based design workflow. Covers using colors.xml,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c47d1a3534c2950a7b0d0c1f8d04db62?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c47d1a3534c2950a7b0d0c1f8d04db62?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Eric Bailey","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Eric Bailey","logo":"https://media.daily.dev/image/upload/s--r1vwe6z1--/f_auto,q_auto/v1789890198/logos/ericwbailey?_a=BAMAMicg0","url":"https://daily.dev/sources/ericwbailey"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/a-designer-developing-for-android-fwxaqyhtd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"android,design-systems,android-studio","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Eric Bailey","item":"https://daily.dev/sources/ericwbailey"},{"@type":"ListItem","position":3,"name":"A designer developing for Android"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/a-designer-developing-for-android-fwxaqyhtd#faq","mainEntity":[{"@type":"Question","name":"How do I abstract color values in an Android app using colors.xml?","acceptedAnswer":{"@type":"Answer","text":"Define named colors in colors.xml, such as a color called sunset represented as a hex value, then reference it elsewhere with @color/ followed by the name. This keeps color usage consistent and centralized, similar to Sass variables or CSS custom properties, and avoids declaring color values inline throughout the codebase. Developers standardizing Android styling patterns can find more implementation details on daily.dev."}},{"@type":"Question","name":"What is the difference between density-independent pixels (dp) and scale-independent pixels (sp) in Android?","acceptedAnswer":{"@type":"Answer","text":"Density-independent pixels (dp) are a measurement unit that lets Android draw UI elements proportionately across devices with different display sizes and densities, similar to CSS viewport units. Scale-independent pixels (sp) work the same way but are used specifically for type, additionally scaling with a user's font size preference for accessibility. Anyone porting a design system to Android can weigh these unit choices with resources on daily.dev."}},{"@type":"Question","name":"How do I keep spacing values consistent across an Android app's UI?","acceptedAnswer":{"@type":"Answer","text":"Codify spacing as named dimension values in dimens.xml, such as spacing_tiny at 2dp or spacing_smaller at 8dp, rather than hardcoding measurements throughout the layout. For distances with specific meaning, like a sticky footer's padding, use semantic names such as sticky_footer_spacing so the intent behind the value is clear to future developers. Teams translating Sketch specs into Android layouts can track patterns like this on daily.dev."}}]}
```

