Android Open Source - pinpoint-android Columns Activity

From Project

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.

Java Source Code

package co.islovely.pinpoint;
//from   ww w . ja va 2  s  . co  m
public class ColumnsActivity extends PinpointActivity {
  protected int getLayoutId() {
    return R.layout.columns;

  protected int[] getButtonIds() {
    return new int[]{,,,

  protected boolean isClickCorrect(int id) {
    int cellX = this.getLauncherItem().getCellX();
        isColumnOne   = cellX == 0,
        isColumnTwo   = cellX == 1,
        isColumnThree = cellX == 2,
        isColumnFour  = cellX == 3;

    switch (id) {
        return isColumnOne;
        return isColumnTwo;
        return isColumnThree;
        return isColumnFour;

    return false;

Java Source Code List