This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
Convert to Anko Layouts DSL: function dp is unresolved #563
Closed
Description
- In the activity_main.xml there is a line
android:layout_height="79dp"
- Invoke
Code / Convert to Anko Layouts DSL
Result:.lparams(width = wrapContent, height = dp(79))
The functiondp
is shown red.
Either another existing function should be used, or functiondp
should exist.
Build:
AS 3.0.1 (#AI-171.4443003) + Kotlin IDE plugin 1.2.30-eap-8-Studio3.0-1 + gradle plugin 1.2.30-eap-6
AS 3.1 Beta 1 (#AI-173.4567466) + Kotlin IDE plugin 1.2.30-eap-8-Studio3.1-1 + gradle plugin 1.2.30-eap-6