无法看到“字体” Android Studio中的资源类型 [英] Cannot see "font" resource type in Android studio
问题描述
res
文件夹中。根据使用字体的android 我不能在下拉菜单中看到font选项,因此我无法创建字体的android资源目录。
我的Android工作室详细信息:
Android Studio 2.3
Build#AI-162.3764568,构建于2017年2月24日
JRE:1.8.0_112-release-b06 x86_64
JVM:由JetBrains sro开发的OpenJDK 64位服务器VM
我使用了加拿大海峡的Android Studio 2.4 Preview,&在选择Android资源目录时,我可以看到font的选项。
以下是相同的图片。
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
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.
这篇关于无法看到“字体” Android Studio中的资源类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!