summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2014-06-03 17:15:34 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-06-03 17:15:34 +0000
commita5dd05f26f8498f609fcc0bca8ffcad64cd9203a (patch)
treeeaeb251c15d8df9de852eacd3330a3909e5d2771 /core
parent0db9a678a41a05a7b464541fb31172323114e663 (diff)
parent08c06495ccf9709b4540abda12221f177adad6ec (diff)
downloadframeworks_base-a5dd05f26f8498f609fcc0bca8ffcad64cd9203a.zip
frameworks_base-a5dd05f26f8498f609fcc0bca8ffcad64cd9203a.tar.gz
frameworks_base-a5dd05f26f8498f609fcc0bca8ffcad64cd9203a.tar.bz2
am ef7c0948: Merge "Add an internal method for setting optical insets." into lmp-preview-dev
* commit 'ef7c0948ea1379ee9f3f5f40267ca2cf5e76a36b': Add an internal method for setting optical insets.
Diffstat (limited to 'core')
-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 b500e46..622fa8c 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -16191,6 +16191,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;