Build a Tic Tac Toe android app with kotlin support
It is the regular Tic Tac Toe game with two gameplay modes Multiplayer
for two players and another Single Player
for one player playing against a computer algorithm
Its a fun game!!
- Single player mode
- Multi player mode
- Splash screen
- Animation styles
- Minimal Design
- Simplified Theme
- Responsive BackPress
-> Android Studio
-> With Kotlin Support
- Clone or download the repo:
https://github.com/ashish7zeph/android-kotlin-TicTacToe-game
- Navigate to the folder
android-kotlin-TicTacToe-game
- Navigate to the folder
android-kotlin-TicTacToe-game/app/src/
to access developers content - Navigate to the folder
apk
for users to access apk - Copy the apk from folder
apk
to an android phone - Install the apk
The app is finally installed on your Android mobile device !! To directly download the apk visit the link
Kotlin code of the splash screen activity in this project is shown below. For kotlin code of other activities visit the link
package com.zeph7.tictactoe
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.view.Window
import android.view.WindowManager
import android.view.animation.AnimationUtils
import kotlinx.android.synthetic.main.activity_splash.*
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
window.requestFeature(Window.FEATURE_NO_TITLE)
window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN)
setContentView(R.layout.activity_splash)
val anim = AnimationUtils.loadAnimation(applicationContext, R.anim.zoom)
imageViewLogo.startAnimation(anim)
Handler().postDelayed({
startActivity(Intent(this@SplashActivity, MainActivity::class.java))
}, 5000)
}
}