Created
July 21, 2014 23:11
-
-
Save josh-burton/4f6aa9995c44fbd4827a to your computer and use it in GitHub Desktop.
WatchFaceAluminum
This file contains hidden or 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
public class WatchFaceAluminum | |
extends WatchFace | |
{ | |
protected WatchFaceStyle buildStyle() | |
{ | |
WatchFaceStyle.Builder localBuilder = WatchFaceStyle.Builder.forActivity(this).setCardPeekMode(1).setPeekOpacityMode(1).setCardProgressMode(0).setBackgroundVisibility(0).setViewProtection(0).setShowSystemUiTime(false); | |
if (isRound()) { | |
localBuilder.setHotwordIndicatorGravity(81).setStatusBarGravity(49); | |
} | |
for (;;) | |
{ | |
return localBuilder.build(); | |
localBuilder.setHotwordIndicatorGravity(81).setStatusBarGravity(49); | |
} | |
} | |
public WatchFaceView onReadyForContent() | |
{ | |
if (isRound()) {} | |
for (AluminumClockView localAluminumClockView = new AluminumClockView(this);; localAluminumClockView = new AluminumClockView(this)) | |
{ | |
setContentView(localAluminumClockView); | |
return localAluminumClockView; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I dont get how setStatusBarGravity are able position from one int value >.< 💢