Learn about measurement units on Android: dip and sp
- [Instructor] If you check out material.io website…or any other Android related document,…you'll notice that distances are not measured…in pixels but in a unit called dp,…which stands for density independent pixel.…If you're familiar with iOS development,…this is the same idea as the unit point.…So why don't we just use pixels…which is the unit most people understand?…Well, the screens of our devices…can be very different from each other.…
Some can pack four times as many pixels…in a square inch than others, or even more.…A button 40 pixel wide might look fine on the Android 1,…but will be way to small to press…on the Samsung Galaxy S6 where the pixels are much smaller.…This make UI development very difficult…if we need to adjust the size of our button…for each kind of screen.…It'll be convenient to have a unit that maintains roughly…the same physical length regardless…of the size of the pixels.…
We can then just use one number and be confident…that our button will look fine on any screens.…This unit is dp.…It's called density independent pixel…
- Using material design principles
- Working with units and measurements
- Using elevation and drop shadows
- Leveraging grids and keylines
- Setting up React Native for Android
- Building floating action buttons
- Creating an immersive experience
- Adding motion and transitions
- Animating icons
- Using component libraries
Skill Level Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
React Native Ecosystem and Workflowwith Emmanuel Henri1h 3m Intermediate
1. Material Design Overview
2. Tools and Environment Setup
3. Build the Materials with React Native
4. Material Motion with React Native
5. Component Libraries
Library selection strategy3m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.