How to Make a Tic Tac Toe Game in Android – Part 1 – THE LAYOUT – Android Studio Tutorial
In this video series we will create an offline 2 player Tic Tac Toe game. We will code the whole game logic, count player points, add a reset functionality and handle orientation changes, so we don’t lose our game state when we rotate the device.
In part 1 we will create the layout by creating 9 buttons within nested LinearLayouts and we will even them out over the screen by adding the layout_weight attribute. Our player points and reset button will be in a RelativeLayout.
Watch the whole playlist:
Source code:
____________________
Subscribe to my channel:
Want more Android tutorials? Check my playlist section:
Follow me on social media:
Facebook:
Instagram:
Twitter:
Blog:
Would this be a viable method for making a chess game? or is there a simpler method other than having 64 buttons?
so we just wrote XML codes in this video?
Please give another tutorial about this game with player vs computer.
Great content!!!
Great tut. Will follow it after I finish the Hello Android books Tic Tac Toe. I like the fact youre doing it with the builder next to the editor. Makes more sense for smaller projects. Thanks.
my app can't run…..why….????
i do the same step as you but my app can't Run…….
make ludo layout in android std
hello man, i have a glitch when moving the button or anything in the preview…
please bro i need help.. 🙁
Hello nice tutorial
Can i publish this on playstore with little editing?
I choose for C++ , why there is MainActivity.java ??? is there any deferent ?
can somebody put the code on the comment section so i can copy and paste?? HAHAHA thanks i give you subscribe =D
btw very nice video. 🙂
i like it this totorial
do you think next time you make a tutorial you could explain why you do specific things as for example why we didn't use kotlin support and explain why we deleted "android.support.constraint.constraintLayout" with linear layout.
Very nice video. I tried to follow and code it myself using LinearLayout and Buttons like you did but the Android Studio didn't show the buttons for some reason. Does anyone have any idea why? (After copying your code it did show them :S )
Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
this error iam facing when i run the app and its getting crashed
gut tutorial, it seems for me very dificalt, it turns out easy,
plz help me if free
its good and understanding but its not working proper.even i use your code but its at point where u use (this).
https://github.com/shivamkumard107/TicTacToe-Online
realtime tic tac tow using firebase. #workinggame
#opensource #contributionsPRWelcomed
We zet
I love the way you zoom it. pls come up with a tutorial of building chatroom, list of chatroom and a complete signup form, that photo will be at the side, follow by first name,last name, username, genda Num, and sign up
thank you sir, for your frienndly help
sir i have to use any image or icon in place of O or X so how can i do in this please tell me…
I got this build gradle error. Not sure what happened here. https://s15.postimg.cc/4x7lmmo0r/Untitled.jpg
I read you're Non technical skills page, very interesting. I doubt I could really ever be a php developer or programmer, but I want to just try some stuff. Recently I was trying to do some basic php login tasks, no luck there with that. Tutorials on this site are poor, i have a couple of books, but they aren't very good for somebody who doesn't know much at all.
I don't suppose you know any php by any chance?
I tried some Android studio tutorial vids, but they never worked out. I am using a Android system from 2013. So I imagine this could work on the device I have access to?
why didn't you use a grid layout?
Great video bro keep it up