Error in loading a cardview in a list [closed]

-1

the error is that when selecting the task option opens the window where I select a group and check the adapter I can not find the error

I leave a link with the video of the implementation of the app

link

also the github where you can download the application

link

    
asked by Austin Arenas 08.12.2018 в 22:19
source

1 answer

-1

In the onBindViewHolder (..) method of the TaskAdapter class, you are passing to the TextView myViewHolder.grdTarea an integer and gives an error as it only supports String.

You can correct it by adding String.valueOf (..):

public void onBindViewHolder(@NonNull TareaAdaptador.myViewHolder myViewHolder, int i) {

    myViewHolder.grdTarea.setText(String.valueOf(mDate.get(i).getGrdTarea()));
    //...

}
    
answered by 09.12.2018 / 02:20
source