Beispiel #1
0
 public ImageAdapter(Context mContext) {
   super(mContext);
   mMaxWidth = DisplayUtils.getScreenWidth() - 20;
   mMaxHeight =
       DisplayUtils.getScreenHeight()
           - DisplayUtils.getStatusHeight(mContext)
           - DisplayUtils.dp2px(96);
 }
Beispiel #2
0
 public ImageAdapter(Context mContext, List<ImageBean> data) {
   super(mContext, data);
   this.data = data;
   mMaxWidth = DisplayUtils.getScreenWidth() - 20;
   mMaxHeight =
       DisplayUtils.getScreenHeight()
           - DisplayUtils.getStatusHeight(mContext)
           - DisplayUtils.dp2px(96);
 }