Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想绘制片段视图边框的左侧但不是整个边框。我想将左侧按钮用作选项卡。单击其中一个时,我想绘制按钮的整个边框,但要绘制视图的左角,但单击的按钮右侧除外。有没有办法做到这一点?
您可以创建一个只有左边框的九个补丁图像并将其应用为片段的背景。
可以在此处找到有关如何创建九个补丁图像的更多信息:
http://radleymarx.com/blog/simple-guide-to-9-patch/
和这里:
http://android9patch.blogspot.co.il/