如何在android中进行控件如下?

时间:2015-01-17 09:10:54

标签: android android-layout

enter image description here

我尝试过使用FrameLayout但它并没有解决我的问题。 我希望这种控制能够适应不同的文本和不同的图像。请帮忙。

1 个答案:

答案 0 :(得分:3)

使用9补丁图片作为ButtonImageButton的背景。阅读9个补丁的更多内容:

http://developer.android.com/tools/help/draw9patch.html http://developer.android.com/reference/android/graphics/NinePatch.html

相关问题