@@ -35,8 +35,8 @@ public class MainFragment extends Fragment implements
35
35
GlobalData gd = GlobalData .getInstance ();
36
36
String flashCardanswer ;
37
37
ImageView questionImage ;
38
- TextView flashCardText , flashcardNumber ;
39
- TextView questionText ;
38
+ TextView flashcardNumber ;
39
+ TextView questionText , hintText ;
40
40
private Animation animation1 ;
41
41
private Animation animation2 ;
42
42
private View currentView ;
@@ -61,8 +61,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
61
61
iQuestionIndex = 0 ;
62
62
63
63
questionImage = (ImageView ) view .findViewById (R .id .questionImage );
64
- flashCardText = (TextView ) view .findViewById (R .id .flashCardText );
65
- questionText = (TextView ) view .findViewById (R .id .questionhint );
64
+ questionText = (TextView ) view .findViewById (R .id .flashCardText );
65
+ hintText = (TextView ) view .findViewById (R .id .questionhint );
66
66
flashcardNumber = (TextView ) view .findViewById (R .id .flashCardNumber );
67
67
68
68
flipButton = (Button ) view .findViewById (R .id .flip_button );
@@ -141,6 +141,8 @@ public void populateQuestion(int index) {
141
141
TextView answerText = (TextView ) view .findViewById (R .id .answerText );
142
142
if (mFlash .getQuestion () != null )
143
143
questionText .setText (mFlash .getQuestion ());
144
+ if (mFlash .getHint () != null )
145
+ hintText .setText (mFlash .getHint ());
144
146
if (mFlash .getAnswer () != null ) {
145
147
flashCardanswer = mFlash .getAnswer ();
146
148
answerText .setText (mFlash .getAnswer ());
0 commit comments