I was going through the new Android O features, and one of the new thing is now app can add fonts directly into res
folder. As per the android documentation for working with fonts, one of the 1st step is to create a new resource type named "font" using Right-click the res folder and go to New > Android resource directory.
But I could not see "font" option available for resource type in the drop down in android studio.
Below is the image attached.
I am not able to see "font" option in the drop down, and hence I am unable to create font android resource directory.
My Android studio details:
Android Studio 2.3 Build #AI-162.3764568, built on February 24, 2017 JRE: 1.8.0_112-release-b06 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Use adb shell ls /system/fonts to list them, or adb pull /system/fonts to transfer all of them to the connected computer (adb will create a folder named "fonts").
To change font styles in GO Launcher, copy the TTF or OTF font files on your phone. Long press on the home screen and select GO Settings. Choose Font–>Select Font. Pick the font you want or tap Scan to add files stored on your device.
Sytem fonts are kept in the fonts folder under system. > /system/fonts/> is the exact path and you find it by going to "file system root" from the top folder that you can reach where your choices are sd card -sandisk sd card (if you have one in the sd card slot.
One thing I noticed is that the drop down is actually scrollable but because the scrollbar is quite dark, others might not notice it. I can't find "font" at first until I scrolled it downwards.
As said by Mike in comments, currently Android Studio 2.4 includes support for all the new developer features available with Android O.
I used Android Studio 2.4 Preview from Canary Channel, & I could see the option for "font" when choosing the Android resource directory.
Below is the image for the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With