Created
August 22, 2012 06:32
-
-
Save rikwatson/3422969 to your computer and use it in GitHub Desktop.
Android Analog Clock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onCreate(Bundle savedInstanceState) | |
{ | |
super.onCreate(savedInstanceState); | |
// Full Screen | |
// | |
requestWindowFeature(Window.FEATURE_NO_TITLE); | |
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, | |
WindowManager.LayoutParams.FLAG_FULLSCREEN); | |
// Could use DigitalClock, but if you do then remove `setBackgroundColor`. | |
// | |
AnalogClock clock = new AnalogClock(this); | |
setContentView(clock); | |
clock.setBackgroundColor(Color.BLACK); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment