我这里有一个ListView - :误差积分PlusOneButton谷歌API密钥
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/main_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/activity_main">
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@color/colorGrey"
android:dividerHeight="5dp"
tools:listitem="@layout/item" />
</android.support.v4.widget.SwipeRefreshLayout>
而且还有一个自定义项目 - :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:srcCompat="@mipmap/ic_image_black_24dp"
android:contentDescription="@string/description" />
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_name" />
<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:annotation="inline"
plus:size="standard" />
</LinearLayout>
我演绎的建议列表。我希望每个提案都有自己的按钮,但是当我没有按键的情况下添加按钮时,我还没有完成!
dependencies {
...
compile 'com.google.android.gms: play-services: 10.0.0'
compile 'com.google.android.gms: play-services-auth: 10.0.0'
compile 'com.google.android.gms: play-services-plus: 10.0.0'
}
预览给人item.xml本 - :
我GOOGLE了这个问题,并发现他在其中写道,如果juzat库com.google出现此问题的注释。 android.gms:play-services 7以上的版本,所以我不认为谷歌扔在Prodakshen不工作版本,因为它已经超过10日,我怀疑他们改变了API密钥或类似的东西,我集成了按钮在谷歌的这个文档的帮助下:https://developers.google.com/+/mobile/android/recommend是一个旧的文档,并有新的?
谢谢你,我做到了,所有更新甚至缓存完全推翻完全重建项目,除按钮:( – sommelier