An Android native application for viewing different fonts available from the
Google Font Developer API.
Each font is displayed in a ViewHolder with its name, its family, and a sample which is downloaded asynchronously using a Font Provider.
This application features a login screen, register screen, reset password screen, and font screen (main screen). But, username and password are only saved on the phone using Shared Preferences, which is considered unsafe.
This project was created during one of my courses on Android mobile development for an assignment.
- Java SDK
- Android Studio
- An API Key for the Google Font Developer API, which you can generate via Google Cloud Console
- An Android Emulator (or an Android Phone with a minimum SDK of 28)
- Clone the repos by running
git clone https://github.com/MerryLeo/GoogleFontApp
in the directory of your choosing - Open the project in Android Studio
- Add
apiKey="enter your api key here"
in local.properties file - Build the application and run it
Note if you are using a physical mobile phone, you must replace the
font provider certificate used in FontAdapter.kt
for com_google.android_gms_fonts_certs_prod