如何在 android 中制作如下控件?
How to make a control in android like following?
我试过使用 FrameLayout,但它没有解决我的问题。
我希望这个控件能够适应不同的文本和不同的图像。请帮忙
使用 9 块图像作为 Button
或 ImageButton
的背景。阅读有关 9 个补丁的更多信息:
http://developer.android.com/tools/help/draw9patch.html
http://developer.android.com/reference/android/graphics/NinePatch.html
我试过使用 FrameLayout,但它没有解决我的问题。 我希望这个控件能够适应不同的文本和不同的图像。请帮忙
使用 9 块图像作为 Button
或 ImageButton
的背景。阅读有关 9 个补丁的更多信息:
http://developer.android.com/tools/help/draw9patch.html http://developer.android.com/reference/android/graphics/NinePatch.html