zoukankan      html  css  js  c++  java
  • contentMode

    scaleAspectFill:The option to scale the content to fill the size of the view. Some portion of the content may be clipped to fill the view’s bounds.

    保持宽高比,填满整个view

     

    scaleAspectFit:The option to scale the content to fit the size of the view by maintaining the aspect ratio. Any remaining area of the view’s bounds is transparent.

    保持宽高比,最大适配view;如果view的宽高比,大于填充的,按高度适配;

     

    scaleToFill:The option to scale the content to fit the size of itself by changing the aspect ratio of the content if necessary.

    拉伸或者压缩宽高,填满view

  • 相关阅读:
    指针总结与地址
    寻址方式
    为什么要有指针?
    指针与变量
    Wired Memory
    Memory Usage Performance Guidelines
    内存管理与运行时
    Java jvm 内存回收机制
    GC详解及Minor GC和Full GC触发条件总结
    Java的内存回收机制详解X
  • 原文地址:https://www.cnblogs.com/dengchaojie/p/8116625.html
Copyright © 2011-2022 走看看