I'm new into graphic design, I'm an android developer and since my first day I felt that graphic design would become a problem.

I already worked with styles.xml, color.xml, etc. to change application style, and made various simple drawables out of shapes like rects to make simple variation to the standard looking widgets.

The last thing I tried to do is to make a vector shape, a trapezoid, to insert it as background drawable to a textview, but I found it darn impossible to make that shape.

Can you link me some tutorials for beginners (that are not something like how-to-change-text-color-in-xml level) or guides? Even books if you know some.

  • Hey jj. Please stick to one question per post and read through our requirements for questions in the help section. Your questions are too broad for this Q&A format. – Zach Saucier Oct 19 '19 at 23:07
  • Hi. Welcome to GDSE.Can you please edit your question and show exactly what you mean by "make it good" and "fit beautifully", and what you have tried/what has failed. Unfortunately as this stands, this question is far to broad. – Billy Kerr Oct 19 '19 at 23:42
  • ok i'll do an editing – JJ androidJ Oct 20 '19 at 0:03
  • done! i explicited what i've worked with – JJ androidJ Oct 20 '19 at 0:10
  • I edited your question to focus more on the resource recommendations, since it was quite broad to answer. Feel free to edit or rollback if you think it detracts too much from what you actually want. – Luciano Oct 21 '19 at 8:37

Use a vector image editor to create the required shape, and save as SVG. Inkscape is free, so try that.

  1. Draw a rectangle using the Rectangle tool F4

  2. Click Path > Object to path Shift+Ctrl+C

  3. Use the Select by Nodes tool F2 to move the corner nodes as required. After clicking on a node, holding down Shift+Ctrl as you drag will constrain the move horizontally/vertically.

  4. Set the object fill and stroke colour as required in the Fill and Stroke panel Shift+Ctrl+F

  5. Click File > Save as - and choose "Plain SVG" as the file type.

Then you could convert it to Android Drawable XML using Android Studio's Vector Asset functionality.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.