当我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
的位置?
答案 0 :(得分:1)
它在android-sdk/platforms/android-xx/data/res/drawable-xxx
个文件夹中定义。