Code example for DigitalClock

Methods: setIdsetTextsetTextColor

0
 
		} 
		// Refer to comments T22 - T27 
		if (choice == 3) {
			digitalClockId++;
			DigitalClock digitalClock = new DigitalClock(context);
		    digitalClock.setId(digitalClockId);
		    digitalClock.setText("Digital Clock" + digitalClockId);
		    digitalClock.setTextColor(Color.WHITE);
			return digitalClock;
		} 
		return null; 
	} 
	//T28. Get View Id. 
	public int getTimePickerId(){ 
		return timePickerId;
	} 
	// Refer to comments T28. 
	public int getChronoMeterId(){ 
		return chronometerId;
	}