w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Exception android.content.res.Resources$NotFoundException: File res/drawable/my.xml from drawable resource ID

try this for color u need to add resource

<selector
xmlns:android="http://schemas.android.com/apk/res/android">

        <item android:drawable="@drawable/clr_normal"
android:state_pressed="false"/>
        <item android:drawable="@drawable/clr_pressed"
android:state_pressed="true"/>

    </selector>

values/string.xml for color

 <drawable name="clr_normal">#AAAAAA</drawable>
<drawable name="clr_pressed">#777777</drawable>




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.