示例#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();
		}
示例#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();
 }
示例#3
0
		public AnalogClock(android.content.Context context, android.util.AttributeSet attrs
			) : this(context, attrs, 0)
		{
			mIntentReceiver = new _BroadcastReceiver_236(this);
		}
示例#4
0
		public AnalogClock(android.content.Context context) : this(context, null)
		{
			mIntentReceiver = new _BroadcastReceiver_236(this);
		}
示例#5
0
 public AnalogClock(android.content.Context context, android.util.AttributeSet attrs
                    ) : this(context, attrs, 0)
 {
     mIntentReceiver = new _BroadcastReceiver_236(this);
 }
示例#6
0
 public AnalogClock(android.content.Context context) : this(context, null)
 {
     mIntentReceiver = new _BroadcastReceiver_236(this);
 }