Hello!

I have a problem:

There is a TextView and I want it to make a background VectorDrawable . I’m doing vector.xml

 <vector android:height="24dp" android:viewportHeight="114.0" android:viewportWidth="494.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> <path android:fillColor="#FFFFFF" android:pathData="M12,86.61L2.19,76.51L12,67.18L12,8C12,3.58 15.59,0 20.01,0L483.99,0C488.42,0 492,3.58 492,8L492,102C492,106.42 488.41,110 483.99,110L20.01,110C15.58,110 12,106.42 12,102L12,86.61Z" android:strokeColor="#00000000" android:strokeWidth="1"/> </vector> 

And this vector on android 4.4 has blurry edges (not clear), but on android 5.0+ everything looks good (as needed).

Help solve the problem with android 4.4

  • one
    I think here more 9.patch fits - andreich

2 answers 2

On the advice of the comment found a site with 9.patch

proper website

then I took the finished svg file, uploaded, adjusted the stretch fields on different screens, downloaded the .png files, and used in the project, it solved the issue of how blurring on versions <5.0 and gave the effect of stretching only necessary parts of the background.

    You have defined the standard resolution height = "24dp" and width = "24dp" in the vector. Increase this value and the problem will be solved.