zoukankan      html  css  js  c++  java
  • Android学习笔记三

    ImageView及其子类

    ImageView 派生出ImageButton , ZoomButton

    继承于View组件,主要功能用于显示图片。

    xml属性                        相关方法                                             说明

    adjustViewBounds         setAdjustViewBounds()                       是否调整自己的边界来保持所显示图片的长宽比

    cropToPadding              setCropToPadding()                            设置为true 将会被裁剪到保留图片的padding

    maxHeight                   setMaxHeight()                                   设置图片最大高

    maxWidth                    setMaxWidth()                                    设置图片最大宽

    scaleType                     setScaleType()                                    设置所显示图片如何缩放或者移动以适应图片的大小

    src             setImageResource()                            设置图片路径所显示的Drawable对象的ID

  • 相关阅读:
    The 2019 China Collegiate Programming Contest Harbin Site A
    牛客练习赛15
    Wannafly挑战赛13-C
    Wannafly挑战赛13-D
    Subsequence Counting
    Minimize the error
    Educational Codeforces Round 42 (Rated for Div. 2)
    K-th Number
    Wannafly挑战赛13-E
    Minimum spanning tree for each edge
  • 原文地址:https://www.cnblogs.com/nano/p/3135725.html
Copyright © 2011-2022 走看看