Priety
Priety

Reputation: 308

how to create arrow from xml code

In my project i need to create the frames, lines and all the shapes required from the drawable folder. I could draw a rectangle and frame and all from drawable. But the problem comes when i need to create arrows from the drawable folder.

Please help me to draw the up arrow and down arrow as shown in the images in the drawable folder.

Up Arrow Down Arrow

Upvotes: 0

Views: 3256

Answers (1)

Vajk Hermecz
Vajk Hermecz

Reputation: 5722

You cannot draw complex shapes currently with the builtin tools android has. ShapeDrawable lists all the possibilities you have for now.

Why don't you just create different sizes of the arrow in png (ldpi, mdpi, hdpi), and use those? That is the recommended way.

If you want to do custom things, you either should look into SVG, or draw your own.

Upvotes: 1

Related Questions