
swuphoto
Kotlin and Android Development featuring Jetpack : No complete explanation on 0dp
Please use the following format for the title of this thread (then simply delete/replace this text with the content for the thread):
Title: Kotlin and Android Development featuring Jetpack - 0dp explained or not? (page 21)
0dp is pointed out to be explained, yet with an explanation of dp as “a certain number of density-independent pixels”, author didn’t finish with the meaning of 0dp, does it mean zero density-independent pixel at all?
Please also add the book’s tag if it has not already present, thanks!
Marked As Solved

mfazio23
Hi there!
After the first time 0dp
is mentioned, the next sentence is the explanation:
That turns the responsibility of sizing the view over to the .
In other words, setting something to 0dp
means the assigned constraints will handle the sizing for the component. Or, if the constraints are not there, the component actually has no size.
Hope this helps!
Also Liked

swuphoto
Oh, that helped a lot!
Popular Pragmatic Bookshelf topics










Other popular topics









Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /rails
- /js
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /java
- /haskell
- /onivim
- /svelte
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /ash
- /opensuse
- /centos
- /php
- /deepseek
- /html
- /scala
- /zig
- /sublime-text
- /textmate
- /debian
- /nixos
- /lisp
- /agda
- /react-native
- /kubuntu
- /arch-linux
- /ubuntu
- /revery
- /django
- /spring
- /manjaro
- /diversity
- /lua
- /nodejs
- /julia
- /slackware
- /c
- /markdown