在 Android Studio 1.3+ 自动完成中隐藏 android.R 资源 [英] Hiding android.R resources in Android Studio 1.3+ autocomplete

查看:37
本文介绍了在 Android Studio 1.3+ 自动完成中隐藏 android.R 资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将 Android Studio 配置为仅显示 project 文件夹内的 @drawable 资源?

Is it possible to configure Android Studio to display only the @drawable resources that are inside the project folder?

我正在从事的项目是一个行业项目,很少需要我使用 R 资源.

The project I'm working on is an Industry project and rarely requires me to use R resources.

推荐答案

查看 AS 的代码完成"部分,我没有找到任何允许隐藏 SDK 资源并使用 app/lib 资源的设置:

Looking through the AS's 'Code Completion' section, I didn't find any setting which allows to hide the SDK resources and use the app/lib resources instead:

StefMa 提到的最近实现的功能可能不会帮助您,因为它以另一种方式工作:它允许库开发人员从 aar 包中隐藏一些资源并仅显示资源的选定部分,又名 公共资源.Chris Banes 在这里做了一个很好的介绍.

The recently implemented feature, mentioned by StefMa, probably will not help you as it works the other way: it allows library developers to hide some of the resources from the aar package and show only selected portion of resources, aka public recources. Chris Banes made a good intro in this feature here.

这篇关于在 Android Studio 1.3+ 自动完成中隐藏 android.R 资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆