-
-
Save codeforfun-jp/c88cd28a9404ef4106e71a6ea5e76265 to your computer and use it in GitHub Desktop.
CTB 5-2
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
pink = findViewById(R.id.pink); | |
black = findViewById(R.id.black); | |
// Screen Size | |
WindowManager wm = getWindowManager(); | |
Display display = wm.getDefaultDisplay(); | |
Point size = new Point(); | |
display.getSize(size); | |
screenWidth = size.x; | |
screenHeight = size.y; | |
orange.setX(-80.0f); | |
orange.setY(-80.0f); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment