Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Scale Bitmap with XML

I have this problem:
I want to display a logo on a splash screen but the Image(bitmap) is on some device to big and on other to small, on some Device it is blurred...
So is there any way to scale the BITMAP in my xml code?
the xml file:

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  <item>
    <color android:color="@color/splash_background"/>
  </item>
  <item>
    <bitmap
        android:src="@drawable/Icon"
        android:tileMode="disabled"
        android:gravity="center"/>
  </item>
</layer-list>

thank you

Sign In or Register to comment.