Android Question Button with bitmap

Discussion in 'Android Questions' started by Cenny, Mar 3, 2015.

  1. Cenny

    Cenny Member Licensed User

    When I make a button with rounded corners and a bitmap as background and place this on a colored panel, I keep seeing this little corners of the button.
    What am I doing wrong?
  2. DonManfred

    DonManfred Expert Licensed User

    remove the padding and/or set the radius to 0
  3. Cenny

    Cenny Member Licensed User

    I like to keep those rounded corners.
    What do you mean by removing the padding?
  4. klaus

    klaus Expert Licensed User

    Your bitmap must have the rounded corners.
    That means that the corners must be transparent in the bitmap.
    CornerRadius is only valid for ColorDrawables.
  5. Cenny

    Cenny Member Licensed User

    Thank you for the tip
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice