Android: implement extended scale type (fit start & fit end)
This commit is contained in:
parent
638f942738
commit
f8f7ff9a6b
@ -484,6 +484,12 @@ public class ImageNode extends ViewNode<ImageView> {
|
||||
case 2:
|
||||
view.setScaleType(ImageView.ScaleType.CENTER_CROP);
|
||||
break;
|
||||
case 4:
|
||||
view.setScaleType(ImageView.ScaleType.FIT_START);
|
||||
break;
|
||||
case 5:
|
||||
view.setScaleType(ImageView.ScaleType.FIT_END);
|
||||
break;
|
||||
default:
|
||||
view.setScaleType(ImageView.ScaleType.FIT_XY);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user