Java Android facebook LikeView
我按照所有步骤设置facebook sdk 我的问题是,即使在移动设备上运行应用程序,xml格式的查看也不是shwonJava Android facebook LikeView,java,android,xml,facebook-like,Java,Android,Xml,Facebook Like,我按照所有步骤设置facebook sdk 我的问题是,即使在移动设备上运行应用程序,xml格式的查看也不是shwon <com.facebook.share.widget.LikeView android:text="Like Button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAllCaps="false" and
<com.facebook.share.widget.LikeView
android:text="Like Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAllCaps="false"
android:background="@color/colorPrimary"
android:textColor="#fff"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:id="@+id/btnLike" />
尝试在Java代码中初始化视图。它已初始化您是否在gradle中添加了编译链接?对于Facebook sdk,我按照我在问题中提到的所有步骤设置Facebook sdk
The following classes could not be instantiated:
-com.facebook.share.widget.LikeView