allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.lannaican:schulte:1.0.17'
}
SchulteGame game = new SchulteGame();
game.setRow(5);
game.setColumn(5);
game.setConfig(SchulteConfig);
game.setListener(SchulteListener);
schulteView.setGame(game);
schulteView.update();
game.start();
Prop Name | Default Value |
---|---|
borderColor | #CCCCCC |
borderSize | 0.2F |
cellColor | #FFFFFF |
cellPressColor | #F0F0F0 |
fontColor | #666666 |
fontSize | 0.6F |
corner | 0.1F |
countDownTime | 3000 |
animation | true |
Don't forget update() after config changed.
game.getStatus();
game.getTapTotal();
game.getTapCorrect();
game.getTapError();
SchulteUtil.createCell(row, column);