how to build a trapezoid shape in android? -


how can create trapezoid shape below image ?

enter image description here

i don't want use image or 9.png .

try this:

<?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="http://schemas.android.com/apk/res/android"     android:width="292dp"     android:height="172dp"     android:viewportwidth="292"     android:viewportheight="172">      <path         android:strokewidth="1.5"         android:strokemiterlimit="10"         android:pathdata="m 27.046 96.615 l 16.416 150.396 l 271.534 150.396 l 186.495 22.836 l 37.676 22.836 l 27.046 86.615 z" />      <path         android:fillcolor="#00ff00"         android:strokewidth="1.5"         android:strokemiterlimit="10"         android:pathdata="m 16.046 20.615 l 13.416 150.396 l 271.534 150.396 l 186.495 22.836 l 37.676 22.836 l 16.046 23.615 z " /> </vector> 

enter image description here


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -