diff options
| author | Adam Powell <adamp@google.com> | 2010-07-28 14:44:21 -0700 |
|---|---|---|
| committer | Adam Powell <adamp@google.com> | 2010-07-28 17:00:02 -0700 |
| commit | c9ae2a24dc1fa274ca0916c91a2e9a2764ba4bb3 (patch) | |
| tree | b0912f57fef22813af38c13a2432aaa752455ee7 /core/java/android/view/ActionMode.java | |
| parent | 48555f8f09c87224e312554b6b771ee30da6a435 (diff) | |
Add support for setting action mode titles/subtitles by resource ID
Change-Id: Ia0d5234cc16f325eeb29127fb87e2616d67379ec
Diffstat (limited to 'core/java/android/view/ActionMode.java')
| -rw-r--r-- | core/java/android/view/ActionMode.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/core/java/android/view/ActionMode.java b/core/java/android/view/ActionMode.java index d4f4b933e0ba..4a7d7ad43a9a 100644 --- a/core/java/android/view/ActionMode.java +++ b/core/java/android/view/ActionMode.java @@ -29,21 +29,45 @@ public abstract class ActionMode { * * @param title Title string to set * + * @see #setTitle(int) * @see #setCustomView(View) */ public abstract void setTitle(CharSequence title); /** + * Set the title of the action mode. This method will have no visible effect if + * a custom view has been set. + * + * @param resId Resource ID of a string to set as the title + * + * @see #setTitle(CharSequence) + * @see #setCustomView(View) + */ + public abstract void setTitle(int resId); + + /** * Set the subtitle of the action mode. This method will have no visible effect if * a custom view has been set. * * @param subtitle Subtitle string to set * + * @see #setSubtitle(int) * @see #setCustomView(View) */ public abstract void setSubtitle(CharSequence subtitle); /** + * Set the subtitle of the action mode. This method will have no visible effect if + * a custom view has been set. + * + * @param resId Resource ID of a string to set as the subtitle + * + * @see #setSubtitle(CharSequence) + * @see #setCustomView(View) + */ + public abstract void setSubtitle(int resId); + + /** * Set a custom view for this action mode. The custom view will take the place of * the title and subtitle. Useful for things like search boxes. * |
