diff options
| author | Adam Powell <adamp@google.com> | 2012-12-07 18:04:51 -0800 |
|---|---|---|
| committer | Adam Powell <adamp@google.com> | 2012-12-10 11:02:54 -0800 |
| commit | 2c8cc972c3b03b76a80db517dde1e68895bbdd66 (patch) | |
| tree | d19481710c65f5c8871884bddc453bf1bc8c6325 /core/java/android/widget/ImageView.java | |
| parent | 7da4b73a236b7c72d1337696949df7a00776dd06 (diff) | |
Update documentation to mention compatibility versioning
Mention changes involving MeasureSpec/RelativeLayout/ImageView
behavior changes when apps target SDK > 17.
Change-Id: I232492a76ac048f7b460d28a87bd84cbbec4e4d7
Diffstat (limited to 'core/java/android/widget/ImageView.java')
| -rw-r--r-- | core/java/android/widget/ImageView.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java index aa977a1810c9..b40260c0ade5 100644 --- a/core/java/android/widget/ImageView.java +++ b/core/java/android/widget/ImageView.java @@ -234,8 +234,15 @@ public class ImageView extends View { /** * Set this to true if you want the ImageView to adjust its bounds * to preserve the aspect ratio of its drawable. + * + * <p><strong>Note:</strong> If the application targets API level 17 or lower, + * adjustViewBounds will allow the drawable to shrink the view bounds, but not grow + * to fill available measured space in all cases. This is for compatibility with + * legacy {@link android.view.View.MeasureSpec MeasureSpec} and + * {@link android.widget.RelativeLayout RelativeLayout} behavior.</p> + * * @param adjustViewBounds Whether to adjust the bounds of this view - * to presrve the original aspect ratio of the drawable + * to preserve the original aspect ratio of the drawable. * * @see #getAdjustViewBounds() * |
