1、ImageView.scaleType取centerCrop后,再用padding时显示异常?ImageView.setCropToPadding(true)即可。
2、在Layout中指定好background和padding以后,程序里面动态修改background之后padding就失效了。解决方法:在setBackgroundResource之后重新设置一下padding,padding的取值要是用int bottom = theView.getPaddingBottom()这种形式,最好在setBackgroundResource之前。