Error in mDateButton.setText


#1

In Listing 7.13
i have a problem with this statement :

mDateButton.setText(mCrime.getDate().toString());


#2

Hi!
It’s supposed to be mDateTextView with the view type of TextView. Inside CrimeHolder class check the initiation of a member variable what kind of view type you’ve got there: is it Button or TextView?