Created
February 15, 2015 00:33
-
-
Save toughrogrammer/ce529f8dfe74f05ef072 to your computer and use it in GitHub Desktop.
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
package codelab.gdg.watchfacehack; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.support.wearable.watchface.CanvasWatchFaceService; | |
import android.view.SurfaceHolder; | |
public class AnalogWatchFaceService extends CanvasWatchFaceService { | |
@Override | |
public Engine onCreateEngine() { | |
return new Engine(); | |
} | |
private class Engine extends CanvasWatchFaceService.Engine { | |
@Override | |
public void onCreate(SurfaceHolder holder) { | |
super.onCreate(holder); | |
} | |
@Override | |
public void onVisibilityChanged(boolean visible) { | |
super.onVisibilityChanged(visible); | |
} | |
@Override | |
public void onTimeTick() { | |
super.onTimeTick(); | |
} | |
@Override | |
public void onDestroy() { | |
super.onDestroy(); | |
} | |
@Override | |
public void onAmbientModeChanged(boolean inAmbientMode) { | |
super.onAmbientModeChanged(inAmbientMode); | |
} | |
@Override | |
public void onDraw(Canvas canvas, Rect bounds) { | |
super.onDraw(canvas, bounds); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment