为什么我不能在android源代码中找到这个drawable?

时间:2013-06-12 16:36:16

标签: android

当我grep divider_holo_light的android源代码时,我得到了这些结果:

~/platform_frameworks_base/core/res/res master gg divider_holo_light .
./values/arrays.xml:137:       <item>@drawable/list_section_divider_holo_light</item>
./values/arrays.xml:239:       <item>@drawable/list_divider_holo_light</item>
./values/arrays.xml:240:       <item>@drawable/list_divider_holo_light</item>
./values/styles.xml:2031:        <item name="android:background">@android:drawable/list_section_divider_holo_light</item>
./values/themes.xml:1298:        <item name="listDivider">@drawable/list_divider_holo_light</item>
./values/themes.xml:1316:        <item name="listDividerAlertDialog">@android:drawable/list_divider_holo_light</item>

然而,当我grep divider的可绘制目录时,这就是我所看到的:

~/platform_frameworks_base/core/res/res/drawable master ls | grep divider
action_bar_divider.xml

我在哪里可以找到定义list_divider_holo_light的位置?

1 个答案:

答案 0 :(得分:1)

它在android-sdk/platforms/android-xx/data/res/drawable-xxx个文件夹中定义。