Beispiel #1
0
 public override void onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent
                                                   @event)
 {
     base.onPopulateAccessibilityEvent(@event);
     if (isChecked())
     {
         java.lang.CharSequence text = mOnLayout.getText();
         if (android.text.TextUtils.isEmpty(text))
         {
             text = java.lang.CharSequenceProxy.Wrap(mContext.getString([email protected].@string
                                                                        .switch_on));
         }
         @event.getText().add(text);
     }
     else
     {
         java.lang.CharSequence text = mOffLayout.getText();
         if (android.text.TextUtils.isEmpty(text))
         {
             text = java.lang.CharSequenceProxy.Wrap(mContext.getString([email protected].@string
                                                                        .switch_off));
         }
         @event.getText().add(text);
     }
 }
Beispiel #2
0
 public override void onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent
                                                   @event)
 {
     base.onPopulateAccessibilityEvent(@event);
     if (isChecked())
     {
         @event.getText().add(java.lang.CharSequenceProxy.Wrap(mContext.getString([email protected]
                                                                                  [email protected]_selected)));
     }
     else
     {
         @event.getText().add(java.lang.CharSequenceProxy.Wrap(mContext.getString([email protected]
                                                                                  [email protected]_not_selected)));
     }
 }
Beispiel #3
0
 public override void onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent
                                                   @event)
 {
     base.onPopulateAccessibilityEvent(@event);
     java.lang.CharSequence cdesc = getContentDescription();
     if (!android.text.TextUtils.isEmpty(cdesc))
     {
         @event.getText().add(cdesc);
     }
 }
Beispiel #4
0
        public override void onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent
                                                          @event)
        {
            base.onPopulateAccessibilityEvent(@event);
            int flags = android.text.format.DateUtils.FORMAT_SHOW_TIME;

            if (mIs24HourView)
            {
                flags |= android.text.format.DateUtils.FORMAT_24HOUR;
            }
            else
            {
                flags |= android.text.format.DateUtils.FORMAT_12HOUR;
            }
            mTempCalendar.set(java.util.Calendar.HOUR_OF_DAY, getCurrentHour());
            mTempCalendar.set(java.util.Calendar.MINUTE, getCurrentMinute());
            string selectedDateUtterance = android.text.format.DateUtils.formatDateTime(mContext
                                                                                        , mTempCalendar.getTimeInMillis(), flags);

            @event.getText().add(java.lang.CharSequenceProxy.Wrap(selectedDateUtterance));
        }