title: How to setup step by step Google Plus One button (Android)
body: <p>I've searched for quite a while now about how to add a plus one button in a android app. The thing is I found out how (as there is alot of questions about it). but when I put the:</p>
  
  <pre><code>&lt;com.google.android.gms.plus.PlusOneButton
  xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus"
  android:id="@+id/plus_one_button"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  plus:size="standard"
  plus:annotation="inline" /&gt;
  </code></pre>
  
  <p>code in the layout, I get a rendering error(asking me to create a class, I did, it didn't worked, I changed the: "com.google.android.gms.plus.PlusOneButton" to "my package name.PlusOneButton" and it still did not worked). then to the java coding, I add a variable to my main_activity.java file and on the onCreate I put the:</p>
  
  <pre><code>        mPlusOneButton = (PlusOneButton) findViewById(R.id.plus_one_button);
  </code></pre>
  
  <p>then right on this step I get the "(PlusOneButton)" underlined red, meaning it cannot be "solved".</p>
  
  <p>now, what the heck am I doing wrong?</p>
  
  <p>am I suppose to create a new layout and a new java file related to this new layout?
  what exactly am I suppose to do?</p>
  
  <p>Any help would be greately apreciated!</p>
  
  <p>Thanks in advance.</p>