2
我想創建一個自定義的佈局,我的谷歌加按鈕,任何想法?我試着調用谷歌加按鈕的OnClickEvent(這不起作用),我試着改變背景圖片。源代碼:如何在Android中使用自定義佈局製作Google plus按鈕?
<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"/>
holder.mPlusOneButton = (PlusOneButton) holder.content.findViewById(R.id.plus_one_button);
holder.mPlusOneButton.initialize("http://www.xxx.xx/", 0);
已解決的分類:Google說:「您只能使用其提供的格式中的+1按鈕。您不能使用其他圖片來表示+1按鈕的功能。「 - [link](https://developers.google.com/+/web/+1button/#gapi.plusone.render) – jobbert 2014-09-10 14:08:09