Use Android studio tools to write the local Gobang game of Android. This project mainly uses the custom view component to realize the duel between black and white phases. Whether it is 5 pieces horizontally and vertically or 5 pieces diagonally, the game will win. The interface and function of Gobang are written completely. The project can provide Android scholars with the understanding of Android studio and the familiarity with Android custom components.