小编Ber*_*ğlu的帖子

如何在android中添加填充矢量文件

如何在我的矢量文件中添加paddingleft,Right,Top和bottom veriable.

我变了

机器人:viewportWidth

机器人:viewportHeight

但没有什么变化

我的矢量

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="31.416dp"
    android:height="31.416dp"
    android:viewportWidth="31.416"
    android:viewportHeight="31.416">

    <path
        android:fillColor="#fff"
        android:pathData="M28.755,6.968l-0.47,0.149L25.782,7.34l-0.707,1.129l-0.513-0.163L22.57,6.51l-0.289-0.934L21.894,4.58l-1.252-1.123
l-1.477-0.289l-0.034,0.676l1.447,1.412l0.708,0.834L20.49,6.506l-0.648-0.191L18.871,5.91l0.033-0.783l-1.274-0.524l-0.423,1.841
l-1.284,0.291l0.127,1.027l1.673,0.322l0.289-1.641l1.381,0.204l0.642,0.376h1.03l0.705,1.412l1.869,1.896l-0.137,0.737
l-1.507-0.192l-2.604,1.315l-1.875,2.249l-0.244,0.996h-0.673l-1.254-0.578l-1.218,0.578l0.303,1.285l0.53-0.611l0.932-0.029
l-0.065,1.154l0.772,0.226l0.771,0.866l1.259-0.354l1.438,0.227l1.67,0.449l0.834,0.098l1.414,1.605l2.729,1.605l-1.765,3.372
l-1.863,0.866l-0.707,1.927l-2.696,1.8l-0.287,1.038c6.892-1.66,12.019-7.851,12.019-15.253
C31.413,12.474,30.433,9.465,28.755,6.968z" />
    <path
        android:fillColor="#fff"
        android:pathData="M17.515,23.917l-1.144-2.121l1.05-2.188l-1.05-0.314l-1.179-1.184l-2.612-0.586l-0.867-1.814v1.077h-0.382l-2.251-3.052
v-2.507L7.43,8.545L4.81,9.012H3.045L2.157,8.43L3.29,7.532L2.16,7.793c-1.362,2.326-2.156,5.025-2.156,7.916
c0,8.673,7.031,15.707,15.705,15.707c0.668,0,1.323-0.059,1.971-0.137l-0.164-1.903c0,0,0.721-2.826,0.721-2.922
C18.236,26.357,17.515,23.917,17.515,23.917z" />
    <path
        android:fillColor="#fff"
        android:pathData="M5.84,5.065l2.79-0.389l1.286-0.705l1.447,0.417l2.312-0.128l0.792-1.245l1.155,0.19l2.805-0.263L19.2,2.09l1.09-0.728
l1.542,0.232l0.562-0.085C20.363,0.553,18.103,0,15.708,0C10.833,0,6.474,2.222,3.596,5.711h0.008L5.84,5.065z
M16.372,1.562
l1.604-0.883l1.03,0.595l-1.491,1.135l-1.424,0.143l-0.641-0.416L16.372,1.562z
M11.621,1.691l0.708,0.295l0.927-0.295
l0.505,0.875l-2.14,0.562l-1.029-0.602C10.591,2.526,11.598,1.878,11.621,1.691z" />
</vector>
Run Code Online (Sandbox Code Playgroud)

像那样

在此输入图像描述

可能吗?

android vector

34
推荐指数
4
解决办法
9038
查看次数

Android 为什么 Facebook SDK 注销按钮不显示?

我开发了一个用facebook登录的应用程序,登录过程没有问题。但是当我想注销时看不到按钮。

损坏的应用截图

坏掉的应用程序

工作应用截图

工作应用程序

损坏的应用程序 gradle 文件;

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.1"
    defaultConfig {
        applicationId "com.ex.ex"
        minSdkVersion 15
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {

    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    // Glide image library
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support:design:24.2.1'
    compile 'com.android.support:support-v4:24.2.1'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.google.android.gms:play-services-auth:9.2.1'
    compile 'com.facebook.android:facebook-android-sdk:4.1.0'

    testCompile 'junit:junit:4.12'
}

apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)

问题的根源是什么?我怎样才能解决这个问题? …

android facebook android-gradle-plugin androiddesignsupport facebook-sdk-4.x

5
推荐指数
1
解决办法
812
查看次数

在PlayStore上发布后,Google登录服务无法正常工作

在使用我的包名和SHA-1代码创建了google-services.json之后,我使用.jks文件创建了我的SHA-1.我将我的应用程序发布到Appstore之后.我的登录服务工作得很好,但一小时后所有服务都停止了.

我为每个平台使用相同的SHA-1,我再次检查了相同的SHA-1.

Android Studio SHA-1输出

Anroid Studio

我的Google Play-service.json SHA1 Servicejson

Play商店SHA-1,也许我需要使用App-Signig证书? 应用商店

怎么了?

android google-signin

3
推荐指数
1
解决办法
1722
查看次数