summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2014-06-02 21:36:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-02 21:36:55 +0000
commit08c06495ccf9709b4540abda12221f177adad6ec (patch)
treef646daa7ffd267dac7fe9d266e34386022f7f58c /core/java/android
parent03bce432aa9d887767c991d6774e106467aa46e7 (diff)
parentdbb06e0c8c60ade44d38cda0dc570ccf588d324f (diff)
downloadframeworks_base-08c06495ccf9709b4540abda12221f177adad6ec.zip
frameworks_base-08c06495ccf9709b4540abda12221f177adad6ec.tar.gz
frameworks_base-08c06495ccf9709b4540abda12221f177adad6ec.tar.bz2
Merge "Add an internal method for setting optical insets." into lmp-preview-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/View.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 025cf69..c7c007e 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -16173,6 +16173,20 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
/**
+ * Set this view's optical insets.
+ *
+ * <p>This method should be treated similarly to setMeasuredDimension and not as a general
+ * property. Views that compute their own optical insets should call it as part of measurement.
+ * This method does not request layout. If you are setting optical insets outside of
+ * measure/layout itself you will want to call requestLayout() yourself.
+ * </p>
+ * @hide
+ */
+ public void setOpticalInsets(Insets insets) {
+ mLayoutInsets = insets;
+ }
+
+ /**
* Changes the selection state of this view. A view can be selected or not.
* Note that selection is not the same as focus. Views are typically
* selected in the context of an AdapterView like ListView or GridView;