Android Open Source - pinpoint-android Columns Activity






From Project

Back to project page pinpoint-android.

License

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 {
  @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;
  }
}




Java Source Code List

co.islovely.pinpoint.ColumnsActivity.java
co.islovely.pinpoint.Configuration.java
co.islovely.pinpoint.DeviceMetrics.java
co.islovely.pinpoint.GridActivity.java
co.islovely.pinpoint.HomescreenAdapter.java
co.islovely.pinpoint.HomescreenSelectActivity.java
co.islovely.pinpoint.Homescreen.java
co.islovely.pinpoint.IntermissionActivity.java
co.islovely.pinpoint.LauncherItem.java
co.islovely.pinpoint.LauncherReader.java
co.islovely.pinpoint.LayoutConfigurationActivity.java
co.islovely.pinpoint.MainActivity.java
co.islovely.pinpoint.MyApplication.java
co.islovely.pinpoint.PinpointActivity.java
co.islovely.pinpoint.Pinpoint.java
co.islovely.pinpoint.QuadrantsActivity.java
co.islovely.pinpoint.RowsActivity.java
co.islovely.pinpoint.StatisticsActivity.java
co.islovely.pinpoint.TaskLogEntry.java
co.islovely.pinpoint.TaskLog.java
co.islovely.pinpoint.TaskManager.java
co.islovely.pinpoint.Task.java
co.islovely.pinpoint.User.java
util.Base64.java