Error in mDateButton.setText

In Listing 7.13
i have a problem with this statement :

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

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?

1 Like