【问题标题】:adding res directories do not show up in android studio添加 res 目录不显示在 android studio
【发布时间】:2016-06-17 23:48:53
【问题描述】:

我在 android studio 中为我的 android 项目添加了 res directories。我使用 IDE 以及使用mkdir res_dir 手动添加了它们。但是,它们不会显示在项目树上。我想在树上查看它们,所以我确定它们在项目中,而不是每次都检查 ls。我尝试重新启动我的IDE,但这个问题仍然存在

我添加了res directories:drawable-hdpi、drawable-ldpi、drawable-mdpi、drawable-xdpi,但我在树上看不到它们。我怎样才能让这些出现?

【问题讨论】:

    标签: android android-studio android-resources


    【解决方案1】:

    将一些文件添加到文件夹中,这将显示drawable中的文件夹。

    【讨论】:

    • 我将文件添加到我的 drawable-xhdpi 目录中。但是根据项目树,如果我添加到drawable。 postimg.org/image/whbupjy5dpostimg.org/image/ycnbvgo8h
    • 这就是它的工作方式。您看到括号中的 (xhdpi) 了吗?这告诉你它在那个特定的文件夹中,只是 android 以这种方式呈现给你。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-04-26
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-07
    • 1970-01-01
    相关资源
    最近更新 更多