title: How to present a CardView when FAB is touched
body: <p>I have a fragment that gets a list of students vocabulary words from my server using Volley. The list of words is displayed in a RecyclerView with a FAB on top. How can I wire up my FAB so that when it is pressed a CardView will be displayed like a pop up over the RecylerView. The purpose of this is to use that CardView as a form to communicate with another script that will allow the user to enter a word to add to the list. When the button is clicked on the CardView it should run the POST script and disappear. Is this doable inside a single fragment?</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.words_ui, container, false);
      ButterKnife.bind(this, view);
      wordRecyclerView = (RecyclerView) view.findViewById(R.id.wordsRecyclerView);
      wordRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
      wordRecyclerView.addItemDecoration(new VerticalSpaceItemDecoration(VERTICAL_ITEM_SPACE));
      mWordAdapter = new WordAdapter(getActivity());
      wordRecyclerView.setAdapter(mWordAdapter);
      TextView clientTextView = (TextView) view.findViewById(R.id.clientText);
      Bundle args = getActivity().getIntent().getExtras();
      final String username = args.getString("USER_NAME");
      clientTextView.setText("Word List For: " + username);
  
      FloatingActionButton wordButton = (FloatingActionButton) view.findViewById(R.id.wordFloatingButton);
      wordButton.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Toast.makeText(getActivity(), "Button was clicked", Toast.LENGTH_LONG).show();
          }
      });
      sendRequest();
      return view;
    }
  
  
   private void sendRequest() {
  
      Bundle args = getActivity().getIntent().getExtras();
      final String username = args.getString("USER_NAME");
      final String URL = JSON_URL + username;
      JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, URL, null, new Response.Listener&lt;JSONObject&gt;() {
  
  
          @Override
          public void onResponse(JSONObject response) {
              mWordArrayList = parseJSONResponse(response);
              mWordAdapter.setWordArrayList(mWordArrayList);
          }
      }, new Response.ErrorListener() {
          @Override
          public void onErrorResponse(VolleyError error) {
  
          }
      });
  
      RequestQueue requestQueue = Volley.newRequestQueue(getActivity());
      requestQueue.add(request);
  }
  
  
  public ArrayList&lt;Word&gt; parseJSONResponse(JSONObject response) {
      ArrayList&lt;Word&gt; mWordArrayList = new ArrayList&lt;Word&gt;();
      if (response == null || response.length() == 0) {
  
      }
      try {
          JSONArray jsonArray = response.getJSONArray(JSON_ARRAY);
          for (int i = 0; i &lt; jsonArray.length(); i++) {
              JSONObject usersWords = jsonArray.getJSONObject(i);
              String words = usersWords.getString(KEY_WORD);
              String addbys = usersWords.getString(KEY_ADDBY);
              Word word = new Word(words, addbys);
              word.setWord(words);
              word.setAddby("Added by: " + addbys);
              mWordArrayList.add(word);
          }
  
      } catch (JSONException e) {
          e.printStackTrace();
      }
      return mWordArrayList;
  }
  </code></pre>