小编Dre*_*per的帖子

如何制作可以改变Android用户界面字体的应用程序?

我想知道是否有人知道如何创建一个可以改变三星手机界面字体样式的应用程序.我有我喜欢的TrueType格式的字体样式.

Galaxy Apps商店有很多字体样式但它们是付费而不是我想要的.您可以看到应用程序作为示例安装用户后可以执行的操作只需转到设置>设备>字体样式>从列表中选择字体并更改字体样式.

我试过反编译它但没有得到太多.或者换句话说,翻转字体应用程序.

反编译源

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="1.1" package="com.monotype.android.font.presentltroman" platformBuildVersionCode="23" platformBuildVersionName="6.0-2438415">
    <uses-sdk android:minSdkVersion="7" />
    <application android:label="@string/app_name" android:icon="@drawable/icon">
        <provider android:name=".FontContentProvider" android:authorities="com.example.myfont" />
        <support-screens android:largeScreens="true" android:xlargeScreens="true" />
    </application>
</manifest>
Run Code Online (Sandbox Code Playgroud)

只有一项活动

import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.content.res.AssetFileDescriptor;
import android.content.res.AssetManager;
import android.database.Cursor;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.util.Log;
import java.io.FileNotFoundException;

public class FontContentProvider extends ContentProvider {
    private static final UriMatcher uriMatcher = new UriMatcher(-1);

    public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException {
        return null;
    } …
Run Code Online (Sandbox Code Playgroud)

java fonts android interface font-style

8
推荐指数
1
解决办法
759
查看次数

标签 统计

android ×1

font-style ×1

fonts ×1

interface ×1

java ×1