在grepAndroid源碼時進行divider_holo_light,獲得如下結果:
~/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>
在grepdivider的下拉目錄時,得到:
~/platform_frameworks_base/core/res/res/drawable master ls | grep divider
action_bar_divider.xml
怎麼知道list_divider_holo_light在哪定義的?
是在這個文件中定義的: android-sdk/platforms/android-xx/data/res/drawable-xxx