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; /* ww w . j av a 2 s.co m*/ public class RowsActivity extends PinpointActivity { @Override protected int getLayoutId() { return R.layout.rows; } @Override protected int[] getButtonIds() { return new int[]{ R.id.rowOne, R.id.rowTwo, R.id.rowThree, R.id.rowFour }; } @Override protected boolean isClickCorrect(int id) { int cellY = this.getLauncherItem().getCellY(); boolean isRowOne = cellY == 0, isRowTwo = cellY == 1, isRowThree = cellY == 2, isRowFour = cellY == 3; switch (id) { case R.id.rowOne: return isRowOne; case R.id.rowTwo: return isRowTwo; case R.id.rowThree: return isRowThree; case R.id.rowFour: return isRowFour; } return false; } }