瀏覽代碼

Fix Typeface in MultiLinks Activity

Change gradle version
tags/release-v2.7
Schoumi 2 年之前
父節點
當前提交
119e0db37d
共有 2 個檔案被更改,包括 5 行新增1 行删除
  1. 4
    0
      app/src/main/java/fr/mobdev/goblim/activity/MultiLinkActivity.java
  2. 1
    1
      build.gradle

+ 4
- 0
app/src/main/java/fr/mobdev/goblim/activity/MultiLinkActivity.java 查看文件

@@ -22,6 +22,7 @@ import android.content.ClipboardManager;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Typeface;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
@@ -73,6 +74,9 @@ public class MultiLinkActivity extends AppCompatActivity {
tv.setText(generatedSharedLink);
}
};
TextView link = (TextView) findViewById(R.id.link);
Typeface typeface = Typeface.createFromAsset(getAssets(),"fonts/NotoSans-Regular.ttf");
link.setTypeface(typeface);

//setup Adapter
adapter = new MultiLinkAdapter(ids.length,selectionListener);

+ 1
- 1
build.gradle 查看文件

@@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.android.tools.build:gradle:2.3.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

Loading…
取消
儲存