summaryrefslogtreecommitdiff
path: root/core/java/android/widget/AutoCompleteTextView.java
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2012-04-30 16:44:14 -0700
committerGilles Debunne <debunne@google.com>2012-04-30 18:13:56 -0700
commit5c49d11a57b0c868e15b9b3a79a9985288b5e15d (patch)
tree0ada0af16746631be399cb42876ebf3cf1744767 /core/java/android/widget/AutoCompleteTextView.java
parent2f87014ea2f177e715032b07004d05e2549a63a8 (diff)
API fix, AutoCompleteTextView
Bug 6102885 Didn't fix dropDownSelector nor completionHintView at that point. Change-Id: If080cbefd5189b79e4fa042e28dfa6a71524b93d
Diffstat (limited to 'core/java/android/widget/AutoCompleteTextView.java')
-rw-r--r--core/java/android/widget/AutoCompleteTextView.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java
index de11fe957d3e..e5199f6fdf22 100644
--- a/core/java/android/widget/AutoCompleteTextView.java
+++ b/core/java/android/widget/AutoCompleteTextView.java
@@ -218,6 +218,8 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
*
* @param hint the text to be displayed to the user
*
+ * @see #getCompletionHint()
+ *
* @attr ref android.R.styleable#AutoCompleteTextView_completionHint
*/
public void setCompletionHint(CharSequence hint) {
@@ -237,7 +239,20 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
mHintView = null;
}
}
-
+
+ /**
+ * Gets the optional hint text displayed at the bottom of the the matching list.
+ *
+ * @return The hint text, if any
+ *
+ * @see #setCompletionHint(CharSequence)
+ *
+ * @attr ref android.R.styleable#AutoCompleteTextView_completionHint
+ */
+ public CharSequence getCompletionHint() {
+ return mHintText;
+ }
+
/**
* <p>Returns the current width for the auto-complete drop down list. This can
* be a fixed width, or {@link ViewGroup.LayoutParams#MATCH_PARENT} to fill the screen, or
@@ -468,6 +483,8 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
* @return the minimum number of characters to type to show the drop down
*
* @see #setThreshold(int)
+ *
+ * @attr ref android.R.styleable#AutoCompleteTextView_completionThreshold
*/
public int getThreshold() {
return mThreshold;