Android Open Source - ClassicSudoku Grid Text View






From Project

Back to project page ClassicSudoku.

License

The source code is released under:

MIT License

If you think the Android project ClassicSudoku 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 com.jeffvk.classicsudoku;
//  w w  w.  j a  va2  s  . co m
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.CheckedTextView;
import android.widget.TextView;

public class GridTextView extends CheckedTextView{

  private int value, row, col, zone;
  
  public GridTextView(Context context, AttributeSet attrs) {
    super(context, attrs);
    // TODO Auto-generated constructor stub
    char temp = this.getText().charAt(0);
    if(temp != '0')
      value = (int)(temp-48);
  }
  
  public void setValue(int val)
  {
    value = val;
    this.setText((char)(value+48));
  }

}




Java Source Code List

com.jeffvk.classicsudoku.AboutActivity.java
com.jeffvk.classicsudoku.GridTextView.java
com.jeffvk.classicsudoku.MainActivity.java
com.jeffvk.classicsudoku.NewGameActivity.java
com.jeffvk.classicsudoku.game.Board.java
com.jeffvk.classicsudoku.game.House.java
com.jeffvk.classicsudoku.game.Tile.java