예제 #1
0
 private void assignTile(final TextView cell, final Tile tile) {
   final int number = tile.getNumber();
   cell.setText(0 == number ? " " : Integer.toString(number));
   cell.setTag(tile);
   cell.setBackgroundColor(
       getResources()
           .getColor(0 == number ? R.color.blank_tile : R.color.numeric_tile_background));
 }