emphasized text
If I keep 16dp as margin all around 4 sides,why 16 dp length or width is different from left and top?
emphasized text
If I keep 16dp as margin all around 4 sides,why 16 dp length or width is different from left and top?
Because you have to set the android:layout_width
and android:layout_height
to match_constraint
or the special 0dp
value inside the layout.xml
file. Otherwise looks like you're using wrap_content
so it's respecting the constraints by adapting the view to its size.