Esempio n. 1
0
		public AnalogClock(android.content.Context context, android.util.AttributeSet attrs
			, int defStyle) : base(context, attrs, defStyle)
		{
			mIntentReceiver = new _BroadcastReceiver_236(this);
			android.content.res.Resources r = mContext.getResources();
			android.content.res.TypedArray a = context.obtainStyledAttributes(attrs, [email protected]
				.styleable.AnalogClock, defStyle, 0);
			mDial = a.getDrawable([email protected]_dial);
			if (mDial == null)
			{
				mDial = r.getDrawable([email protected]_dial);
			}
			mHourHand = a.getDrawable([email protected]_hand_hour);
			if (mHourHand == null)
			{
				mHourHand = r.getDrawable([email protected]_hand_hour);
			}
			mMinuteHand = a.getDrawable([email protected]_hand_minute
				);
			if (mMinuteHand == null)
			{
				mMinuteHand = r.getDrawable([email protected]_hand_minute);
			}
			mCalendar = new android.text.format.Time();
			mDialWidth = mDial.getIntrinsicWidth();
			mDialHeight = mDial.getIntrinsicHeight();
		}
Esempio n. 2
0
 public AnalogClock(android.content.Context context, android.util.AttributeSet attrs
                    , int defStyle) : base(context, attrs, defStyle)
 {
     mIntentReceiver = new _BroadcastReceiver_236(this);
     android.content.res.Resources  r = mContext.getResources();
     android.content.res.TypedArray a = context.obtainStyledAttributes(attrs, [email protected]
                                                                       .styleable.AnalogClock, defStyle, 0);
     mDial = a.getDrawable([email protected]_dial);
     if (mDial == null)
     {
         mDial = r.getDrawable([email protected]_dial);
     }
     mHourHand = a.getDrawable([email protected]_hand_hour);
     if (mHourHand == null)
     {
         mHourHand = r.getDrawable([email protected]_hand_hour);
     }
     mMinuteHand = a.getDrawable([email protected]_hand_minute
                                 );
     if (mMinuteHand == null)
     {
         mMinuteHand = r.getDrawable([email protected]_hand_minute);
     }
     mCalendar   = new android.text.format.Time();
     mDialWidth  = mDial.getIntrinsicWidth();
     mDialHeight = mDial.getIntrinsicHeight();
 }
Esempio n. 3
0
        private void updateContentDescription(android.text.format.Time time)
        {
            int flags = android.text.format.DateUtils.FORMAT_SHOW_TIME | android.text.format.DateUtils
                        .FORMAT_24HOUR;
            string contentDescription = android.text.format.DateUtils.formatDateTime(mContext
                                                                                     , time.toMillis(false), flags);

            setContentDescription(java.lang.CharSequenceProxy.Wrap(contentDescription));
        }
Esempio n. 4
0
 public virtual void set(android.text.format.Time arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         @__env.CallVoidMethod(this.JvmHandle, global::android.text.format.Time._set7994, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     }
     else
     {
         @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.text.format.Time.staticClass, global::android.text.format.Time._set7994, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     }
 }
Esempio n. 5
0
 public virtual bool before(android.text.format.Time arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         return(@__env.CallBooleanMethod(this.JvmHandle, global::android.text.format.Time._before7998, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)));
     }
     else
     {
         return(@__env.CallNonVirtualBooleanMethod(this.JvmHandle, global::android.text.format.Time.staticClass, global::android.text.format.Time._before7998, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)));
     }
 }
Esempio n. 6
0
 protected internal override void onAttachedToWindow()
 {
     base.onAttachedToWindow();
     if (!mAttached)
     {
         mAttached = true;
         android.content.IntentFilter filter = new android.content.IntentFilter();
         filter.addAction(android.content.Intent.ACTION_TIME_TICK);
         filter.addAction(android.content.Intent.ACTION_TIME_CHANGED);
         filter.addAction(android.content.Intent.ACTION_TIMEZONE_CHANGED);
         getContext().registerReceiver(mIntentReceiver, filter, null, mHandler);
     }
     // NOTE: It's safe to do these after registering the receiver since the receiver always runs
     // in the main thread, therefore the receiver can't run before this method returns.
     // The time zone may have changed while the receiver wasn't registered, so update the Time
     mCalendar = new android.text.format.Time();
     // Make sure we update to the current time
     onTimeChanged();
 }
Esempio n. 7
0
 public static bool isEpoch(android.text.format.Time time)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 8
0
 public virtual bool after(android.text.format.Time that)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 9
0
 private static int nativeCompare(android.text.format.Time a, android.text.format.Time
                                  b)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 10
0
 public static int compare(android.text.format.Time a, android.text.format.Time b)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 11
0
 public Time(android.text.format.Time other)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 12
0
		protected internal override void onAttachedToWindow()
		{
			base.onAttachedToWindow();
			if (!mAttached)
			{
				mAttached = true;
				android.content.IntentFilter filter = new android.content.IntentFilter();
				filter.addAction(android.content.Intent.ACTION_TIME_TICK);
				filter.addAction(android.content.Intent.ACTION_TIME_CHANGED);
				filter.addAction(android.content.Intent.ACTION_TIMEZONE_CHANGED);
				getContext().registerReceiver(mIntentReceiver, filter, null, mHandler);
			}
			// NOTE: It's safe to do these after registering the receiver since the receiver always runs
			// in the main thread, therefore the receiver can't run before this method returns.
			// The time zone may have changed while the receiver wasn't registered, so update the Time
			mCalendar = new android.text.format.Time();
			// Make sure we update to the current time
			onTimeChanged();
		}
Esempio n. 13
0
 public static int compare(android.text.format.Time arg0, android.text.format.Time arg1)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     return(@__env.CallStaticIntMethod(android.text.format.Time.staticClass, global::android.text.format.Time._compare7991, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1)));
 }
Esempio n. 14
0
 public Time(android.text.format.Time arg0)  : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
 {
     global::MonoJavaBridge.JNIEnv         @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.text.format.Time.staticClass, global::android.text.format.Time._Time8014, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     Init(@__env, handle);
 }
Esempio n. 15
0
 public static bool isEpoch(android.text.format.Time arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     return(@__env.CallStaticBooleanMethod(android.text.format.Time.staticClass, global::android.text.format.Time._isEpoch8009, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0)));
 }
Esempio n. 16
0
 public static void snapToCycleDay(android.text.format.Time time, int cycleDay)
 {
     throw new System.NotImplementedException();
 }