From e8c866ddd00e694783d5abe276c139657c9bf591 Mon Sep 17 00:00:00 2001 From: Muddassir Ahmed Khan Date: Thu, 3 Sep 2020 05:42:47 +0500 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 795170e..6addb1c 100644 --- a/README.md +++ b/README.md @@ -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)