DJ-*_*DOO 7 android facebook android-resources
我继承了一些代码并且我正在研究它,但是,当我尝试构建它时,我得到以下问题:
activity_login.xml:26: error: No resource identifier found for attribute 'login_text' in package
Run Code Online (Sandbox Code Playgroud)
我的按钮xml如下:
<com.facebook.widget.LoginButton
xmlns:fb="http://schemas.android.com/apk/res-auto"
android:id="@+id/facebookBtn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:textColor="@color/white"
android:textAppearance="@android:style/TextAppearance.Small"
android:gravity="center"
android:onClick="facebookBtnClick"
android:paddingLeft="30dp"
fb:login_text="@string/loginWithFacebook"
/>
Run Code Online (Sandbox Code Playgroud)
我也试过投入,xmlns:fb="http://schemas.android.com/apk/res/com.facebook.widget"
但这也不适合我,如果有人有任何建议我会非常感激
Art*_*tem 24
您可以在这里找到信息https://developers.facebook.com/docs/android/upgrading-4.x
Style attr标签现在是命名空间以避免冲突.应用程序需要将命名空间"com_facebook_"添加到他们现有的facebook sdk风格的attrs中.
所以,fb:com_facebook_login_text现在使用.
| 归档时间: |
|
| 查看次数: |
2787 次 |
| 最近记录: |