kiddouk
11/04/2016, 9:16 AMAnko 0.9
.
I am trying to create a squared vertical layout with this code:
verticalLayout {
// ...
}.lparams {
val screenSize = Point()
windowManager.getDefaultDisplay().getSize(screenSize)
height = screenSize.x
width = screenSize.x
}
This leads to compilation error on the line when I access the windowManager
None of the following candidates is applicable because of receiver type mismatch:
public val Context.windowManager: WindowManager defined in org.jetbrains.anko