Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
muddassir235 authored Sep 3, 2020
1 parent ecf8380 commit e8c866d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ You don't have to get a reference to the layoutParams, adjust the width and heig
myView.mutableWidth = 160.0f.px
myView.mutableHeight = 90.0f.px
```
#### Minimum Width and Minimum Height
You don't have to set both `minimumWidth` and `minWidth` for acheiving your desired behaviour (Textview and its decendants (Button e.t.c) require both of these to be set in order to apply a minimum height to the view which leads to ugly code), simply use `minW`
```kotlin
myTextView.minW = 16.0.px
myTextView.minH = 9.0.px
```

## Primitives
#### Display Pixels (dp) to Pixels (px)
Expand Down

0 comments on commit e8c866d

Please sign in to comment.