Skaliere eine zeichnbare Ressource in XML (Android)
Ich versuche ein Drawable auf das Doppelte seiner Originalgröße zu skalieren. Ich versuche dies zu verwenden:Zeichenbare Ressourcen. Mein aktueller Code ist:
Zeichenbar:
<?xml version="1.0" encoding="utf-8"?>
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/ic_launcher"
android:scaleHeight="80%"
android:scaleWidth="80%" >
</scale>
Layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/scale2" />
</LinearLayout>
In der zweiten ImageView wird jedoch nichts angezeigt. Wie kann ich es reparieren?