About the resolution of android2.x system custom picture fillet bug

Source: Internet
Author: User

One of the problems that I encountered in doing the project today.

The expected effect is this:

But in 2. What the X system gets is this:

The left part of the code is as follows:

<?xml version= "1.0" encoding= "Utf-8"? ><shape xmlns:android= "Http://schemas.android.com/apk/res/android" >    <solid android:color= "@color/white"/>    <stroke        android:width= "0.5DP"         Android:color= "@color/white"/>    <corners        Android:bottomleftradius= "@dimen/button_ Radius "        android:bottomrightradius=" 0DP "        android:topleftradius=" @dimen/button_ Radius "        android:toprightradius=" 0DP "/></shape>

Later on-line check the reason, found 2. The X system Bottomleftradius and Bottomrightradius two properties, and the system after 2.X is normal.

Workaround:

Create a new DRAWABLE-V12 folder to put the correct properties file;

You can put a file in the Drawble folder with an incorrect property.

Copy Material: http://www.2cto.com/kf/201408/322479.html

About the resolution of android2.x system custom picture fillet bug

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.