DEV Community


Answer: UnsupportedOperationException: Can't convert to dimension: type=0x1

Pratik Butani
Android Developer By Passion | Freelancer | Being Helpful By Nature | Stack-Overflowing | Fluttering | Exploring Kotlin & Flutter.
・1 min read

After 2 days I found the solution; from the layout as defined in my question, I have a Spinner which is bound with a custom TextView:

<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android=""
    ... />

Here, I have an extracted dimension resource: @dimen/spinner_list_item_text_size.

This has been defined…

Discussion (0)