我想为我的应用程序创建一个第一页,您必须在其中成功登录/注册到 facebook 才能将您带到下一个 Intent。我已经按照这里的教程进行了操作:https : //developers.facebook.com/docs/facebook-login/android,但我无法实现第 3 点的内容。(如果我这样做了,那么它不会不给我看任何东西,只是一个空白屏幕)。如果我现在运行它,它会向我显示 facebook 按钮,但是当我点击它并让我进入登录页面时,如果我想在框中输入任何内容,我会收到如下错误:
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon: **** ERROR unknown type 0x73000d (glSizeof,73)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon: **** ERROR unknown type 0x73000d (glSizeof,73)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon: **** ERROR unknown type 0x73000d (glSizeof,73)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon: **** ERROR unknown type 0x73000d (glSizeof,73)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00000b44 …Run Code Online (Sandbox Code Playgroud) 我在@drawable文件夹中使用Copy + Paste添加了2个图像,但是我收到错误
Error:(25) No resource identifier found for attribute 'srcCompat' in package 'com.example.francydarkcool.maps'
Run Code Online (Sandbox Code Playgroud)
我已经添加:
defaultConfig {
vectorDrawables.useSupportLibrary = true;
...
}
Run Code Online (Sandbox Code Playgroud)
在build.gradle中
并且:
ImageView img1 = new ImageView(this);
img1.setImageResource(R.drawable.cascada3);
setContentView(img1);
ImageView img2 = new ImageView(this);
img2.setImageResource(R.drawable.cascada1);
setContentView(img2);
Run Code Online (Sandbox Code Playgroud)
在我的.java文件中.
这是我的activity_cascada_urlatoarea.xml文件:
<?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:background="#479fc7"
android:orientation="vertical"
android:weightSum="480">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:weightSum="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1"
android:layout_weight="1"
android:orientation="vertical" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="227dp"
app:srcCompat="@drawable/cascada3"
android:id="@+id/imageView5"
android:layout_weight="0.50"
/>
<ImageView
android:layout_width="match_parent"
android:layout_height="200dp"
app:srcCompat="@drawable/cascada1"
android:id="@+id/imageView7"
android:layout_weight="0.33"
/>
<LinearLayout …Run Code Online (Sandbox Code Playgroud)