title: How to Set Icon to display on the far right in Java
body: <pre><code>getSupportActionBar().setLogo(R.drawable.addicon);
  </code></pre>
  
  <p>The code above seems to place my Icon in the Centre . I would like to place to the far right and make it clickable as well . At the moment it the image for the icon is in the project files as a drawable I have not included it in any xml files.</p>