#

imageview setmaxwidt

  • ImageView的setMaxWidth()和setMaxHeight()生效

     對于ImageView來說,要讓它設(shè)置的MaxWidth和MaxHeight能夠生效,必須滿足如下兩點(diǎn): 1. 加上setAdjustViewBounds(true)。

    作者:android仔
    2020-06-30 07:11:04