Skip to content
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.

org.jetbrains.anko.AnkoException: 'android.widget.TextView.enabled' property does not have a getter #245

Closed
@deadmoto

Description

@deadmoto

Here is a snippet:

textView() {
    onClick {
        if (enabled) {
        }
    }
}

When I run this code I get an exception:
org.jetbrains.anko.AnkoException: 'android.widget.TextView.enabled' property does not have a getter

Changing 'enabled' to 'isEnabled' fixes the problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions