zoukankan      html  css  js  c++  java
  • 2、Android-UI(关于Nine-Patch图片)

    实例:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:background="@drawable/qq"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
    
    </LinearLayout>

    此时的箭头会被拉伸

    这种效果非常差

    对于用户和开发者都是极差的体胖

    此时可以使用Nine-Patch图片进行

    此时的图片资源需要时.png的图片资源

    此时点击:

     具体的使用:

    https://blog.csdn.net/MakerCloud/article/details/80419130

     实际中的效果:

  • 相关阅读:
    oracle数据库闪回执行步骤——oracle数据库回退
    10.20总结
    10.11总结
    10.10总结
    10.9总结
    10.8总结
    10.7总结
    10.6总结
    10.5总结
    10.4总结
  • 原文地址:https://www.cnblogs.com/Mrchengs/p/10674994.html
Copyright © 2011-2022 走看看