在Android SDK安装路径下的tools目录下找到draw9path.bat,双击运行。制作9Path图片。

layout.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:andro />
</LinearLayout>

第二个按钮的背景为9patch图片,被拉伸后如下:

Android 9Patch图片

相关文章:

  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2021-03-27
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-11-13
  • 2022-12-23
相关资源
相似解决方案