![]() | i dont understand this code. in hello android book.page 80 |
|
08 Sep 2012, 08:42
Fahimeh SH (4 posts) |
I read Hello Android book and i dont understand some parts of the code. super(context); in this code, what does it mean and what does it do? this.game = (Game) context; why we wrote this? what does it do? In android site is write that onSizeChanged() function is used for: “This is called during layout when the size of this view has changed” This meant that if to rotate the phone, this function causes the view of program to display true. this is true? getRect(selX,selY,selRect); what does it mean and what does it do? Log.d() what does it do? Please help me. Cheers.
public class PuzzleView extends View {
private static final String TAG = "Sudoku" ;
private final Game game;
public PuzzleView(Context context) {
super(context);
this.game = (Game) context;
setFocusable(true);
setFocusableInTouchMode(true);
}
// ...
}
|
| You must be logged in to comment |

