开发者

Imagebutton with arrow border

i want to make a breadcrumb for my android app. In breadcrumb on the left there is an imagebutton with arrow border. On the right there is a text title. When user开发者_如何转开发 tap on imagebutton, application performs specific task.

So, can you help me to create imagebutton with arrow border like in attach image?

Thank you.

Imagebutton with arrow border


I'm not 100% sure what you mean by an Arrow Border, but you cannot (as far as I know) set borders to any views in Android.

There are two options you could go for:

  1. Make an outer View to surround the View you want a border on. Then set the background of the outer border to an arrow background.
  2. Use a Nine Patch.

I would recommend a nine patch for this personally.

Edit: I noticed you wanted a border on an image. That could be an issue with nine patch unless you integrate the border into the image, which defeats the purpose.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜