1

I have been reading other posts where the solution is apparently given. However, the solution doesn't work for me. I would have commented in that post, but I cannot do it with my reputation.

The issue is described here. Basicly I want to use two different shapes dependign on the status of my ViewGroup. The solution marked as valid states the following:

<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_pressed="true" >
    <shape>.......</shape>
</item>

Having implemented just that, I have an Exception:

FATAL EXCEPTION: main
android.view.InflateException: Binary XML file line #11: Binary XML file line #11: Error inflating class com.mypackage.myapp.customviews.CheckableTextIconButton

There is one person (@toobsco42) that comment with the exact same problem, but he has no answer.

What could be happening here? Is there other way to use a selector and shapes?

Community
  • 1
  • 1
Daniel Reina
  • 5,764
  • 1
  • 37
  • 50

0 Answers0