Commit 182d2f13 authored by Inès EL HADRI's avatar Inès EL HADRI 💤

add price in recycler

parent 4e3cc9d8
...@@ -101,6 +101,7 @@ public class HomeAdapter extends RecyclerView.Adapter<HomeAdapter.ViewHolder> { ...@@ -101,6 +101,7 @@ public class HomeAdapter extends RecyclerView.Adapter<HomeAdapter.ViewHolder> {
// with that element // with that element
viewHolder.getTitreTextView().setText(mDataSet.get(position).getTitre()); viewHolder.getTitreTextView().setText(mDataSet.get(position).getTitre());
viewHolder.getAdresseTextView().setText(mDataSet.get(position).getAdresse()); viewHolder.getAdresseTextView().setText(mDataSet.get(position).getAdresse());
viewHolder.getPrixTextView().setText(String.format("%,.2f €", mDataSet.get(position).getPrix()));
} }
// Return the size of dataset (invoked by the layout manager) // Return the size of dataset (invoked by the layout manager)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment