Your styles.xml would also be the right place to add more themes-which in turn you could preview in Android Studio. These colors get used by the theme generated at project creation, looking like this in styles.xml: could also remove the reference and edit the colors in the theme directly, but that is usually not the clean way. Locate your colors.xml in res/values/ and modify the colors there: Usually this would be the AppTheme that is referencing some colors. To actually change the colors you need to change the theme. It does not change the theming on your phone when running your app-it is just a preview. This is used to view how your layout would look using a given theme. TicTacToeGame.java import are changing the theme of the preview window. Here is the code to the classes that makes up my game. If someone could offer some advice, it would greatly be appreciated. So I just need a method that when I rotate the screen all my information still there. The code is working but when I rotate the screen I lose everything. I think the problem is within the paint() method of the TicTacToeGame.java, but I can't work it out as I am still learning. Computer Science Computer Science questions and answers In Android Studio, I am making a tic tac toe game. My problem at the moment, is that each time the player clicks on the grid, any X's will change to Os and the Os to Xs. I have gotten the game to a stage where I can display the title, a reset button, the grid and draw the Xs and Os when the player clicks in the grid (the game currently has no game logic as I will add later). I am building a Tic Tac Toe game in java.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |