I am a beginner at the android studio. I am developing an app which shows news, images, and videos from a JSON in a server. I want to implement these using recycler view. by using multiple view types in the recycler view. my view type data comes from JSON. but I can't, add view type from JSON to the list. The code to add view type is
list.add(new CityEvent(Jsondata1, CityEvent.CITY_TYPE));
how can add the type example CITY_TYPE From JSON? Please help.