Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 12
Línea 86... Línea 86...
86
    }
86
    }
Línea 87... Línea 87...
87
 
87
 
Línea 88... Línea 88...
88
 
88
 
89
    public class MyViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
-
 
90
 
89
    public class MyViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
91
        private TextView titulo;
90
 
Línea 92... Línea 91...
92
        private TextView fecha;
91
        private TextView fecha,pendientes,titulo;
93
        private Button entrar;
92
        private Button entrar;
94
        private ImageView imagen;
93
        private ImageView imagen;
95
 
94
 
96
 
95
 
97
        public MyViewHolder(@NonNull View itemView) {
96
        public MyViewHolder(@NonNull View itemView) {
-
 
97
            super(itemView);
-
 
98
            titulo = itemView.findViewById(R.id.description);
98
            super(itemView);
99
            fecha = itemView.findViewById(R.id.progressview);
99
            titulo = itemView.findViewById(R.id.description);
100
            imagen = itemView.findViewById(R.id.imagelist);
100
            fecha = itemView.findViewById(R.id.progressview);
101
            entrar = itemView.findViewById(R.id.button);
101
            imagen = itemView.findViewById(R.id.imagelist);
102
            pendientes = itemView.findViewById(R.id.pendientes);
102
            entrar = itemView.findViewById(R.id.button);
103
 
Línea 103... Línea 104...
103
            if (clickListener != null) {
104
            if (clickListener != null) {
Línea 104... Línea 105...
104
                itemView.setFocusable(true);
105
                itemView.setFocusable(true);
Línea 105... Línea 106...
105
                itemView.setOnClickListener(this);
106
                itemView.setOnClickListener(this);
Línea 106... Línea 107...
106
            }
107
            }
107
        }
108
        }
108
 
109
 
-
 
110
        public void bindData(final HashMap<String, String> data) {
Línea 109... Línea 111...
109
        public void bindData(final HashMap<String, String> data) {
111
 
110
 
112
            data.entrySet();
111
            data.entrySet();
113
 
Línea 125... Línea 127...
125
            if(view != null )
127
            if(view != null )
126
            {
128
            {
127
                fecha.setText((Html.fromHtml(view)));
129
                fecha.setText((Html.fromHtml(view)));
128
            }
130
            }
Línea -... Línea 131...
-
 
131
 
-
 
132
            if(total != null && slides != null)
-
 
133
            {
-
 
134
                pendientes.setText(slides+" / "+total+" items");
-
 
135
            }
129
 
136
 
130
            String imagens;
137
            String imagens;
Línea 131... Línea 138...
131
            imagens=data.get("imagen");
138
            imagens=data.get("imagen");