Skip to content
This repository has been 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 opened this issue Sep 11, 2016 · 1 comment

Comments

@deadmoto
Copy link

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.

@yanex
Copy link
Member

yanex commented Oct 12, 2016

Solution: do not generate TextView.enabled.

@yanex yanex removed the open label May 3, 2017
@yanex yanex added this to the Anko 0.10 milestone May 3, 2017
@yanex yanex added the fixed label May 3, 2017
@yanex yanex closed this as completed May 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants