summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alan Viverette <alanv@google.com> 2013-08-28 16:57:42 -0700
committer Alan Viverette <alanv@google.com> 2013-08-28 16:57:42 -0700
commitfb410d219fae2e07a6be3c7365bedc3e11c96f6c (patch)
tree1142e1963cdd9341f9541ba710c74468e8500677
parentd3373c292a9fd0ae9c6bafb594ed7132304c6516 (diff)
Fix documentation regarding defStyle in View constructor
BUG: 8912583 Change-Id: Ib8b1f8baa4ee98aae0e66edc547ab014b2401415
-rw-r--r--core/java/android/view/View.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 5269ee3fd3cd..2ccfe374bcb7 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -3390,17 +3390,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* @param context The Context the view is running in, through which it can
* access the current theme, resources, etc.
* @param attrs The attributes of the XML tag that is inflating the view.
- * @param defStyle The default style to apply to this view. If 0, no style
- * will be applied (beyond what is included in the theme). This may
- * either be an attribute resource, whose value will be retrieved
- * from the current theme, or an explicit style resource.
+ * @param defStyleAttr An attribute in the current theme that contains a
+ * reference to a style resource to apply to this view. If 0, no
+ * default style will be applied.
* @see #View(Context, AttributeSet)
*/
- public View(Context context, AttributeSet attrs, int defStyle) {
+ public View(Context context, AttributeSet attrs, int defStyleAttr) {
this(context);
TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.View,
- defStyle, 0);
+ defStyleAttr, 0);
Drawable background = null;