diff options
author | Alan Viverette <alanv@google.com> | 2013-09-09 18:09:13 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2013-09-09 18:09:13 -0700 |
commit | 617feb99a06e7ffb3894e86a286bf30e085f321a (patch) | |
tree | 81366597a0234fc7634effbf7cf9d13e2c5c69e2 /core/java/android/widget/ZoomButton.java | |
parent | e668c0a1759d35ce3156bcd830ed07d3fddd2ce4 (diff) | |
download | frameworks_base-617feb99a06e7ffb3894e86a286bf30e085f321a.zip frameworks_base-617feb99a06e7ffb3894e86a286bf30e085f321a.tar.gz frameworks_base-617feb99a06e7ffb3894e86a286bf30e085f321a.tar.bz2 |
Add View constructor that supplies a default style resource
Also updates the constructor of every class that extends View.
BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
Diffstat (limited to 'core/java/android/widget/ZoomButton.java')
-rw-r--r-- | core/java/android/widget/ZoomButton.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/widget/ZoomButton.java b/core/java/android/widget/ZoomButton.java index af17c94..715e868 100644 --- a/core/java/android/widget/ZoomButton.java +++ b/core/java/android/widget/ZoomButton.java @@ -49,8 +49,12 @@ public class ZoomButton extends ImageButton implements OnLongClickListener { this(context, attrs, 0); } - public ZoomButton(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); + public ZoomButton(Context context, AttributeSet attrs, int defStyleAttr) { + this(context, attrs, defStyleAttr, 0); + } + + public ZoomButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { + super(context, attrs, defStyleAttr, defStyleRes); mHandler = new Handler(); setOnLongClickListener(this); } |