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.
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:
- 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.
- 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.
精彩评论