Android Open Source - pinpoint-android Rows 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;
/* 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;
  }
}




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