Description
In a Single shot change font of Entire Android Application
Single Shot Font Change alternatives and similar packages
Based on the "Font" category.
Alternatively, view Single Shot Font Change alternatives based on common mentions on social networks and blogs.
-
Calligraphy
Custom fonts in Android the easy way... -
android-typeface-helper
Typeface helper for Android -
fontbinding
A full example of custom fonts in XML using data binding and including font caching. -
Print
A lightweight Android library for use iconic fonts. -
Android-Icon-Fonts
Material and Holo iconic fonts. -
TypefaceHelper
Helper object for injecting typeface into various text views of android. -
Tehreer-Android
Standalone text engine for Android aimed to be free from platform limitations
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Single Shot Font Change or a related project?
README
AppFontChanger
In a Single shot change font of Entire Android Application - TextViews, EditText, Buttons, Views etc.,
Kindly use the following links to use this library:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
And then in the other gradle file(may be your app gradle or your own module library gradle, but never add in both of them to avoid conflict.)
dependencies {
// AppCompat version
implementation 'com.github.myinnos:AppFontChanger:1.0'
or
// AndroidX version
implementation 'com.github.myinnos:AppFontChanger:1.0.3'
}
How to use
Step 1: add default font to styles, Here i added serif font as default:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:typeface">serif</item>
</style>
Step 2: add custom font in application level to override style font:
public class AppBaseApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// custom font for entire App
TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Montserrat-Regular.ttf");
}
''''''''''''''''
Any Queries? or Feedback, please let me know by opening a new issue!
Contact
Prabhakar Thota
- :globe_with_meridians: Website: myinnos.in
- :email: e-mail: [email protected]
- :mag_right: LinkedIn: PrabhakarThota
- :thumbsup: Twitter: @myinnos
- :camera: Instagram: @prabhakar_t_
If you appreciate my work, consider buying me a cup of :coffee: to keep me recharged :metal: by PayPal
License
Copyright 2017 MyInnos
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*Note that all licence references and agreements mentioned in the Single Shot Font Change README section above
are relevant to that project's source code only.