ctor public TimePicker(android.content.Context, android.util.AttributeSet);
ctor public TimePicker(android.content.Context, android.util.AttributeSet, int);
ctor public TimePicker(android.content.Context, android.util.AttributeSet, int, int);
+ method public android.view.View getAmView();
method public deprecated java.lang.Integer getCurrentHour();
method public deprecated java.lang.Integer getCurrentMinute();
method public int getHour();
+ method public android.view.View getHourView();
method public int getMinute();
+ method public android.view.View getMinuteView();
+ method public android.view.View getPmView();
method public boolean is24HourView();
method public deprecated void setCurrentHour(java.lang.Integer);
method public deprecated void setCurrentMinute(java.lang.Integer);
import android.annotation.NonNull;
import android.annotation.Nullable;
+import android.annotation.TestApi;
import android.annotation.Widget;
import android.content.Context;
import android.content.res.Configuration;
return mDelegate.dispatchPopulateAccessibilityEvent(event);
}
+ /** @hide */
+ @TestApi
+ public View getHourView() {
+ return mDelegate.getHourView();
+ }
+
+ /** @hide */
+ @TestApi
+ public View getMinuteView() {
+ return mDelegate.getMinuteView();
+ }
+
+ /** @hide */
+ @TestApi
+ public View getAmView() {
+ return mDelegate.getAmView();
+ }
+
+ /** @hide */
+ @TestApi
+ public View getPmView() {
+ return mDelegate.getPmView();
+ }
+
/**
* A delegate interface that defined the public API of the TimePicker. Allows different
* TimePicker implementations. This would need to be implemented by the TimePicker delegates
boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event);
void onPopulateAccessibilityEvent(AccessibilityEvent event);
+
+ /** @hide */
+ @TestApi View getHourView();
+
+ /** @hide */
+ @TestApi View getMinuteView();
+
+ /** @hide */
+ @TestApi View getAmView();
+
+ /** @hide */
+ @TestApi View getPmView();
}
static String[] getAmPmStrings(Context context) {
package android.widget;
import android.annotation.Nullable;
+import android.annotation.TestApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources;
event.getText().add(selectedTime + " " + selectionMode);
}
+ /** @hide */
+ @Override
+ @TestApi
+ public View getHourView() {
+ return mHourView;
+ }
+
+ /** @hide */
+ @Override
+ @TestApi
+ public View getMinuteView() {
+ return mMinuteView;
+ }
+
+ /** @hide */
+ @Override
+ @TestApi
+ public View getAmView() {
+ return mAmLabel;
+ }
+
+ /** @hide */
+ @Override
+ @TestApi
+ public View getPmView() {
+ return mPmLabel;
+ }
+
/**
* @return the index of the current item showing
*/
package android.widget;
+import android.annotation.TestApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Parcelable;
event.getText().add(selectedDateUtterance);
}
+ /** @hide */
+ @Override
+ @TestApi
+ public View getHourView() {
+ return mHourSpinnerInput;
+ }
+
+ /** @hide */
+ @Override
+ @TestApi
+ public View getMinuteView() {
+ return mMinuteSpinnerInput;
+ }
+
+ /** @hide */
+ @Override
+ @TestApi
+ public View getAmView() {
+ return mAmPmSpinnerInput;
+ }
+
+ /** @hide */
+ @Override
+ @TestApi
+ public View getPmView() {
+ return mAmPmSpinnerInput;
+ }
+
private void updateInputState() {
// Make sure that if the user changes the value and the IME is active
// for one of the inputs if this widget, the IME is closed. If the user