How To Get Hashmap Data In Recycle View
I had seen many examples regarding Hashmap Data but I am not getting the data as required. Here is my code: public class QuickGraphAdapter extends RecyclerView.Adapter
Solution 1:
change your onBindViewHolder();
@Override
public void onBindViewHolder(QuickGraphAdapter.GraphHolder holder, int position) {
for (Map.Entry<String, ArrayList<CoinPriceGraph>> graph : GraphValue.entrySet()) {
ArrayList<CoinPriceGraph> graphs = graph.getValue();
Log.e(TAG, "Key Name: " + graph.getKey());
holder.tvGraphName.setText(graph.getKey());
}
}
Post a Comment for "How To Get Hashmap Data In Recycle View"