Home Clip corners of a bitmap on xml android
Reply: 0

Clip corners of a bitmap on xml android

user755 Published in June 20, 2018, 12:15 am

I want to put a bitmap in background of a shape. I use layer-list for this:

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/background" />
                android:color="#ff0000" />
            <corners android:radius="10dp" />

The result is:

As you can see corners of bitmap is visible. How can I remove these corners?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.307506 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO