2010-09-02 45 views

回答

0

您可以在SDK中找到這些資源和其他資源。他們在$ANDROID_SDK/platforms/$VERSION/data/res,其中$ANDROID_SDK是您在您的機器上解壓SDK的地方,$VERSION是某些Android版本(例如,Android 2.2的android-8)。

+0

好的。我可以閱讀這個XML文件的源代碼,但是我仍然不知道,當我使用simple_list_item_2時,我必須給ArrayAdapter的構造函數提供什麼對象。例如,對於simple_list_item_1,ArrayAdapter的構造函數如下所示:new ArrayAdapter(this,android.R.layout.simple_list_item_1,new String [] {「Car」,「Cat」}); – kspacja 2010-09-02 19:45:27

+1

@kspacja:'ArrayAdapter'不支持'simple_list_item_2'。下面是一個示例項目,顯示'simple_list_item_1'的用戶:http://github.com/commonsguy/cw-android/tree/master/Selection/List/ – CommonsWare 2010-09-02 20:14:17

+0

如何用simple_list_item_1來做到這一點我知道。我怎麼知道,ArrayAdapter不支持simple_list_item_2?我怎麼知道什麼支持什麼? – kspacja 2010-09-02 20:38:33

相關問題