MvvmCross / MvvmCross-AndroidSupport

Android support library packages for MvvmCross: The .NET MVVM framework for cross-platform solutions.
http://mvvmcross.com
15 stars 0 forks source link

Vector on background #315

Closed penihel closed 7 years ago

penihel commented 7 years ago

HI.

I have problem similar as this #306

But i'm using in a Button Background

Steps to reproduce

  1. Create a Vector (iconvoltar.xml)

  2. Use it as button's background

<Button
        android:layout_width="16dp"
        android:layout_height="16dp"
        android:id="@+id/btnVoltar"
        android:background="@drawable/iconVoltar"
        android:elevation="0dp"
        android:shadowDy="0"
        android:shadowDx="0"
        android:shadowColor="#00ffffff" />

Expected behavior

Show de vector

Actual behavior

Error Android.Content.Res.Resources+NotFoundException: File res/drawable/iconvoltar.xml from drawable resource ID #0x7f020066

Configuration

Simple Android 4.4

Version: 4.4

kjeremy commented 7 years ago

Not an MvvmCross issue. Use app:srcCompat=.