title: Use Floating Button in another xml
body: <p>I create a Floating Button in xml then I put it in another xml using include,and now I'm trying to do action in this floating Button but the project stop when I run it .. so I want to now how can I do action in specific button from another xml</p>
  
  <p>action_bar xml:</p>
  
  <pre><code>&lt;android.support.design.widget.FloatingActionButton
      android:id="@+id/play"
      android:layout_width="80dp"
      android:layout_height="80dp"
      android:layout_gravity="bottom|center"
  
      android:background="@drawable/oval"
      android:src="@drawable/play_pause"
      android:layout_alignParentBottom="true"
      android:layout_centerHorizontal="true" /&gt;
  </code></pre>
  
  <p>I include the floating Button inside another XML:</p>
  
  <pre><code>&lt;include layout="@layout/control_bar"&gt;
  &lt;/include&gt;
  </code></pre>
  
  <p>java class</p>
  
  <pre><code>        playButton=(FloatingActionButton)findViewById(R.id.play);
  
    }
  
  
  
      playButton.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
  
              }
  </code></pre>