summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2017-06-29 07:54:19 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-06-30 04:07:12 +0000
commitc66ebd9a544b772ed004b8cf5cb49c75205f1f39 (patch)
treee906e6be33effe7ead125a343b48674ada7d34c4
parent406d916c591e469a106c87e81c0931e15e88885c (diff)
downloadbase-c66ebd9a544b772ed004b8cf5cb49c75205f1f39.tar.gz
Add docs for new padding/margin attributes.
The attributes for View, paddingHorizontal and paddingVertical, were added in the O release and are documented in R.attr. But they should also be referenced in View itself, alongside the other padding parameters. Similarly, the new layout_MarginHorizontal and layout_marginVertical should be referenced in ViewGroup.MarginLayoutParams. Bug: 63128350 Add docs about new padding/margin params Test: built docs, checked the result Change-Id: I3021df5ea83c469811b4a6ec6ecd3ab2966ec384 (cherry picked from commit 353d397d17c2224540cfe7fa4e33a1b0b4d3490f)
-rw-r--r--core/java/android/view/View.java2
-rw-r--r--core/java/android/view/ViewGroup.java10
2 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 488216595a3e..25c02d17f046 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -724,6 +724,8 @@ import java.util.function.Predicate;
* @attr ref android.R.styleable#View_nextFocusUp
* @attr ref android.R.styleable#View_onClick
* @attr ref android.R.styleable#View_padding
+ * @attr ref android.R.styleable#View_paddingHorizontal
+ * @attr ref android.R.styleable#View_paddingVertical
* @attr ref android.R.styleable#View_paddingBottom
* @attr ref android.R.styleable#View_paddingLeft
* @attr ref android.R.styleable#View_paddingRight
diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java
index 66df335f07da..1dbc1aca88c5 100644
--- a/core/java/android/view/ViewGroup.java
+++ b/core/java/android/view/ViewGroup.java
@@ -7608,6 +7608,16 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
* See
* {@link android.R.styleable#ViewGroup_MarginLayout ViewGroup Margin Layout Attributes}
* for a list of all child view attributes that this class supports.
+ *
+ * @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_margin
+ * @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginHorizontal
+ * @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginVertical
+ * @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginLeft
+ * @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginTop
+ * @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginRight
+ * @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginBottom
+ * @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginStart
+ * @attr ref android.R.styleable#ViewGroup_MarginLayout_layout_marginEnd
*/
public static class MarginLayoutParams extends ViewGroup.LayoutParams {
/**