开发者

Android: How can I achieve/draw an arrow and put a text on top of it using Canvas/Paint?

I want to achieve the below picture (i made it via excel).

Android: How can I achieve/draw an arrow and put a text on top of it using Canvas/Paint?

Here are the requirements:

  1. arrow down shape
  2. "GOAL" text on top of it
  3. tip of the arrow should be pointed on the given x,y
  4. transparent effect (i think its setAlpha(0..255))
  5. gradient e开发者_开发问答ffect (top to bottom)
  6. emboss effect (optional)
  7. lighting effect (optional)

Any guidance is appreciated. *i don't have idea on how to draw. please guide us via code snippets example.

UPDATES I just need small icon.


you have to go for nine patch image. set backgrond of textview is "nineparch image". and setyour text view at x,y using absolute layout.

Nine patch is available here:

http://developer.android.com/guide/developing/tools/draw9patch.html

it may help you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜