Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/230.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 安卓脸谱:预设大小为';xml中不存在吗?_Android_Xml_Facebook_Android Studio - Fatal编程技术网

Android 安卓脸谱:预设大小为';xml中不存在吗?

Android 安卓脸谱:预设大小为';xml中不存在吗?,android,xml,facebook,android-studio,Android,Xml,Facebook,Android Studio,我正在尝试在我的应用程序中设置profilepictureview: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:p

我正在尝试在我的应用程序中设置profilepictureview:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context="fr.djey.testf.MainFragment"
    xmlns:facebook="http://schemas.android.com/apk/res-auto">

    <com.facebook.login.widget.ProfilePictureView
        android:id="@+id/facebook_avatar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/login_button"
        android:layout_centerHorizontal="true"
        />

    <com.facebook.login.widget.LoginButton
        android:id="@+id/login_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="30dp"
        android:layout_marginBottom="30dp"
        android:layout_centerInParent="true"/>
</RelativeLayout>

我想为这张照片设定一个小尺寸。我在互联网上发现,我必须在facebook:preset_size=small上设置,但它似乎已经不存在了


您能告诉我是否有其他方法可以在xml(而不是java)中实现这一点吗?

它已被替换为:

facebook:com\u facebook\u预设大小=“小”

在父布局中添加:

xmlns:facebook=”http://schemas.android.com/apk/res-auto“

升级指南中对此进行了说明:
-->将Android SDK从4.0.1升级到4.1.0它已被替换为:

facebook:com\u facebook\u预设大小=“小”

在父布局中添加:

xmlns:facebook=”http://schemas.android.com/apk/res-auto“

升级指南中对此进行了说明:
-->将Android SDK从4.0.1升级到4.1.0

非常感谢!它工作得很好。我只是告诉你,android studio在我们开始打字时并不建议这样做(这就是为什么我没有找到)。非常感谢!它工作得很好。我只是告诉你,当我们开始键入行时,android studio并不建议这样做(这就是为什么我没有找到)。