public class Stop
extends Fragment
Modifier and Type | Field and Description |
---|---|
(package private) Activity |
activity
The instance of the current Activity
|
(package private) EditText |
passcode
Input field for user to enter the pass code into.
|
(package private) SSJsonReader |
reader
The instance of the
SSJsonReader class that reads in the dynamic
content for the application. |
(package private) Animation |
shake
The animation applied to
shakeable |
(package private) LinearLayout |
shakeable
The item that is animated when the incorrect pass code is entered into
the
passcode text field. |
(package private) boolean |
temp1
boolean value indicating what template this fragment is currently apart
of.
|
(package private) boolean |
temp3
boolean value indicating what template this fragment is currently apart
of.
|
(package private) MediaPlayer |
voMediaPlayer
The instance of voice over MediaPlayer
|
Constructor and Description |
---|
Stop(SSJsonReader reader,
int run)
The constructor saves what template type this Fragment is a part of and
copies the instance of the
SSJsonReader into memory. |
Modifier and Type | Method and Description |
---|---|
void |
onAttach(Activity activity)
This class uses the onAttach method of the android life cycle to save an
instance of the activity.
|
View |
onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState)
This method is called by the system to inflate the layout for the Stop
screen.
|
void |
onDestroy()
All data is saved within this method and memory with the
voMediaPlayer is released. |
boolean |
onNextPress()
Called by the controlling activity to indicate to the Stop fragment that
the next button has been pressed.
|
Activity activity
EditText passcode
SSJsonReader reader
SSJsonReader
class that reads in the dynamic
content for the application.Animation shake
shakeable
LinearLayout shakeable
passcode
text field.boolean temp1
boolean temp3
MediaPlayer voMediaPlayer
public Stop(SSJsonReader reader, int run)
SSJsonReader
into memory.reader
- The instance of the SSJsonReader
run
- The integer representation of the corresponding Template the
Fragment is a part of.public void onAttach(Activity activity)
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
public void onDestroy()
voMediaPlayer
is released.public boolean onNextPress()
shakeable
LinearLyout to
indicate to any user that the incorrect pass code was entered.