public class ExerciseActivity extends Activity implements ButtonGridFragment.AnswerSelectedListener
Module
Activity is always called with a position in the getExtras() of the calling Intent.
This position is an index for the return value of Main.loadModulesList(Context)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTRA_POSITION
Constant used for getting the value of the selected Module's position from Intent payload.
|
Constructor and Description |
---|
ExerciseActivity() |
Modifier and Type | Method and Description |
---|---|
void |
onAnswerSelected(int position)
Defers click event on the ButtonGrid to the ExerciseFragment
|
void |
onClickPlay(View view)
Defers click event on Play button to the ExerciseFragment
|
protected void |
onCreate(Bundle savedInstanceState) |
public static final java.lang.String EXTRA_POSITION
protected void onCreate(Bundle savedInstanceState)
public void onClickPlay(View view)
view
- The view that was clicked.public void onAnswerSelected(int position)
onAnswerSelected
in interface ButtonGridFragment.AnswerSelectedListener
position
- Position of the button that was clicked.