我已经用fabrik插件实现了twitter登录,在设置了twitter集成后我面临这个问题,有人能告诉我这有什么问题吗?我已经粘贴了我的gradle和logcat.
Gradle Code
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.matrix_intech.manabitas"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
ndk {
moduleName "webp"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile
('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets.main {
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
} …Run Code Online (Sandbox Code Playgroud) 其实我要创建名片.我有不同的名片样本.用户可以选择卡片及其颜色.我在位图上写文字时遇到了麻烦.文本未根据不同的屏幕尺寸进行调整.我在Samasung galaxy s5和nexus 5上进行了测试.两款设备的分辨率都是1080x1920.但是有不同的ppi.Sampe图片:
我正在使用此代码:
private void customCard(int drawableId, int color) {
bm1 = null;
newBitmap = null;
try {
bm1 = BitmapFactory.decodeResource(getResources(), drawableId);
Bitmap.Config config = bm1.getConfig();
if (config == null) {
config = Bitmap.Config.ARGB_8888;
}
newBitmap = Bitmap.createBitmap(bm1.getWidth(), bm1.getHeight(), config);
paintText = new Paint(Paint.ANTI_ALIAS_FLAG);
newCanvas = new Canvas(newBitmap);
newCanvas.drawBitmap(bm1, 0, 0, null);
rectText = new Rect();
ivCard.setImageBitmap(newBitmap);
} catch (Exception e) {
e.printStackTrace();
}
if (theme == 0) {
//Set First Name
if (firstName != null && !firstName.equals("")) …Run Code Online (Sandbox Code Playgroud)