Nacho Lopez
  • Home
  • Talks
  • Twitter
  • Mastodon
Sign in Subscribe

reflection

A collection of 1 post
java

Changing values of attributes in Android only accessible by XML

I had to use today thecropToPadding  attribute for an ImageView in Android. It’s the way to go if you want to mimic Aspect Fill scaling with Clipped Subviews from iOS, by using it andcenterCrop  as scaleType. For example, if I wanted to do it from a layout, it would
Jun 13, 2012 1 min read
Page 1 of 1
Nacho Lopez © 2023
Powered by Ghost
Mastodon