diff options
| author | 2012-04-30 17:26:36 -0700 | |
|---|---|---|
| committer | 2012-04-30 18:50:52 -0700 | |
| commit | 7ced8f9cabfed2e11c125a1a6b4ff18f1cc50060 (patch) | |
| tree | 6812212b1ca372636f6a2032756b85d5519cb56a | |
| parent | 02d7e489b2e195c290c47dfb2ab1f6f8df66cfe2 (diff) | |
Adding getters/setters for StackView xml attrs. (Bug 6104219)
Change-Id: Iaa1ba0292b0d40f73e315028d9f01ef407021e57
| -rw-r--r-- | api/current.txt | 4 | ||||
| -rw-r--r-- | core/java/android/widget/StackView.java | 40 |
2 files changed, 44 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 4a9b3bbf76ba..5c191579a681 100644 --- a/api/current.txt +++ b/api/current.txt @@ -28243,6 +28243,10 @@ package android.widget { ctor public StackView(android.content.Context); ctor public StackView(android.content.Context, android.util.AttributeSet); ctor public StackView(android.content.Context, android.util.AttributeSet, int); + method public int getClickColor(); + method public int getOutlineColor(); + method public void setClickColor(int); + method public void setOutlineColor(int); } public class Switch extends android.widget.CompoundButton { diff --git a/core/java/android/widget/StackView.java b/core/java/android/widget/StackView.java index 22df3bc23883..91519aafb7c7 100644 --- a/core/java/android/widget/StackView.java +++ b/core/java/android/widget/StackView.java @@ -220,6 +220,46 @@ public class StackView extends AdapterViewAnimator { } /** + * Sets the color of the outlines of items in this StackView. + * + * @param color the color of the StackView item outlines. + * @attr ref android.R.styleable#StackView_resOutColor + */ + @android.view.RemotableViewMethod + public void setOutlineColor(int color) { + mResOutColor = color; + } + + /** + * Returns the color of the outlines of items in this StackView. + * + * @attr ref android.R.styleable#StackView_resOutColor + */ + public int getOutlineColor() { + return mResOutColor; + } + + /** + * Sets the color for the click feedback on items in this StackView. + * + * @param color the color of the StackView item click feedback. + * @attr ref android.R.styleable#StackView_clickColor + */ + @android.view.RemotableViewMethod + public void setClickColor(int color) { + mClickColor = color; + } + + /** + * Returns the color of the click feedback on items in this StackView. + * + * @attr ref android.R.styleable#StackView_clickColor + */ + public int getClickColor() { + return mClickColor; + } + + /** * Animate the views between different relative indexes within the {@link AdapterViewAnimator} */ void transformViewForTransition(int fromIndex, int toIndex, final View view, boolean animate) { |