private String getAdaptiveUrl ( FileLink fileLink , int dimen ) { ResizeTask resizeTask = new ResizeTask . Builder ( ) . fit ( "crop" ) . align ( "center" ) . width ( dimen ) . height ( dimen ) . build ( ) ; return fileLink . imageTransform ( ) . addTask ( resizeTask ) . url ( ) ; }
Creates a URL to an image sized appropriately for the form ImageView