title: how do i create a new CardView?
body: <p>i am trying to add a new card view/new card thingy(sorry i'm new) to my app. right now, it all works fine, but how would i add more? i would also like to know how to do it on FAB click. Here is my code</p>
  
  <pre><code>public class WeatherListAdapter extends RecyclerView.Adapter&lt;WeatherListAdapter.ViewHolder&gt;{
  
      private List&lt;WeatherData&gt; weatherDataList;
  
      @Override
      public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
          //?
          View view1 = LayoutInflater.from(parent.getContext()).inflate(R.layout.adapter_weather_card,parent,false);
          View view2 = LayoutInflater.from(parent.getContext()).inflate(R.layout.adapter_weather_card,parent,false);
          return new ViewHolder(view2);
      }
  
      @Override
      public void onBindViewHolder(ViewHolder holder, int position) {
          WeatherData weatherData = this.weatherDataList.get(position);
          holder.locationTextView.setText(weatherData.getName());
          holder.tempTextView.setText("Temperature: "+weatherData.getWeatherDetails().getTemperature());
          holder.humidTextView.setText("Humidity: "+ weatherData.getWeatherDetails().getHumidity());
  
  
      }
  
      @Override
      public int getItemCount() {
          return this.weatherDataList.size();
      }
  
      protected static class ViewHolder extends RecyclerView.ViewHolder{
  
          public TextView locationTextView;
          public TextView tempTextView;
          public TextView humidTextView;
          public ViewHolder(View v){
              super(v);
              locationTextView = (TextView) v.findViewById(R.id.locationTextView);
              tempTextView = (TextView) v.findViewById(R.id.tempTextView);
              humidTextView= (TextView) v.findViewById(R.id.humidText);
          }
  
  
  
  
      }
  
      public WeatherListAdapter(List&lt;WeatherData&gt; weatherDataList){
          this.weatherDataList = weatherDataList;
  
      }
  }
  </code></pre>
  
  <p>if i need to add more to help you figure it out, just leave a comment. Thanks!
  <strong>WeatherListActivity-</strong></p>
  
  <pre><code>private RecyclerView recyclerView;
  List&lt;WeatherData&gt; mWeatherDataList;
  WeatherListAdapter mAdpapter;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_weather_list);
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
      recyclerView.setLayoutManager(new LinearLayoutManager(this));
  
      mWeatherDataList = new ArrayList&lt;WeatherData&gt;();
  
  
  
  
  
  
  
  
      final WeatherApiManager weatherApiManager = new WeatherApiManager();
      weatherApiManager.getWeatherByCoordinate(35.744644099999995, -78.86395929999999, new WeatherCallback() {
          @Override
          public void weatherDownloadCompleted(boolean success, WeatherData weatherData) {
              List&lt;WeatherData&gt; weatherDataList = new ArrayList&lt;WeatherData&gt;();
             // weatherDataList.add(weatherData);
            //  weatherDataList.add(weatherData);
  
              mAdpapter = new WeatherListAdapter(weatherDataList);
  
  
  
  
  
  
              //why does this have to be in here?
              recyclerView.setAdapter(mAdpapter);
  
          }
      });
  
  
  
      FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
  
      fab.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
  
              final WeatherApiManager weatherApiManager = new WeatherApiManager();
              weatherApiManager.getWeatherByCoordinate(35.744644099999995, -78.86395929999999, new WeatherCallback() {
                  @Override
                  public void weatherDownloadCompleted(boolean success, WeatherData weatherData) {
                      List&lt;WeatherData&gt; weatherDataList = new ArrayList&lt;WeatherData&gt;();
  
                      weatherDataList.add(weatherData);
  
                      mAdpapter = new WeatherListAdapter(weatherDataList);
  
  
                      //why does this have to be in here?
                      recyclerView.setAdapter(mAdpapter);
  
  
                  }
              });
  
              updateUI();
  
  
          }
      });
  
  
  }
  </code></pre>