Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is a very good explination straight from pinterest here --> <a href="http://developers.pinterest.com/android/" rel="nofollow">pinterest</a></p> <p>However for future readers if you want to know whats in there it looks like this.</p> <p><strong>Using the SDK</strong></p> <p>Register for a Client ID<br> Download the documentation and SDK<br> First place the pinit-sdk.jar folder into YOUR_PROJECT/libs and integrate into your IDE or build system.<br> Then we need to do a one time setup. </p> <pre><code>PinItButton.setPartnerId("YOUR_PARTNER_ID"); // required PinItButton.setDebugMode(true); // optional </code></pre> <p>To use the PinIt button in an XML layout first add it like so.</p> <pre><code>&lt;com.pinterest.external.PinItButton android:id="@+id/pin_it" android:layout_width="wrap_content" android:layout_height="wrap_content"/&gt; </code></pre> <p>Next, find the button and set some properties </p> <pre><code>PinItButton pinIt = (PinItButton) findViewById(R.id.pin_it); pinIt.setImageUrl("http://placekitten.com/400/300"); pinIt.setUrl("http://placekitten.com"); // optional pinIt.setDescription("A place kitten!"); // optional </code></pre> <p>Alternatively, we can instantiate and add the button entirely in Java.</p> <pre><code>PinItButton pinIt = new PinItButton(this); pinIt.setImageUrl("http://placekitten.com/400/300"); pinIt.setUrl("http://placekitten.com"); pinIt.setDescription("A place kitten!"); view.addView(pinIt); </code></pre> <p><strong>Deep Linking</strong></p> <p>Since launch, Pinterest for Android supports deep linking of Pins, Users and Boards in two ways. First, when using the standard Android Browser or other native apps, any normal Pinterest link is capable of being opened in our app. The recommended option for developers is to use a Uri scheme as seen below.</p> <p><strong>Pin</strong></p> <pre><code>pinterest://pinterest.com/pin/285063851385287883/ </code></pre> <p><strong>Board</strong></p> <pre><code>pinterest://pinterest.com/meaghanror/cats-cats-cats/ </code></pre> <p><strong>User</strong></p> <pre><code>pinterest://pinterest.com/carlrice/ </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload