Back to project page pinpoint-android.
The source code is released under:
MIT License
If you think the Android project pinpoint-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package co.islovely.pinpoint; //from ww w . ja va 2 s . co m public class ColumnsActivity extends PinpointActivity { @Override protected int getLayoutId() { return R.layout.columns; } @Override protected int[] getButtonIds() { return new int[]{ R.id.columnOne, R.id.columnTwo, R.id.columnThree, R.id.columnFour }; } @Override protected boolean isClickCorrect(int id) { int cellX = this.getLauncherItem().getCellX(); boolean isColumnOne = cellX == 0, isColumnTwo = cellX == 1, isColumnThree = cellX == 2, isColumnFour = cellX == 3; switch (id) { case R.id.columnOne: return isColumnOne; case R.id.columnTwo: return isColumnTwo; case R.id.columnThree: return isColumnThree; case R.id.columnFour: return isColumnFour; } return false; } }