안드로이드에서 제공해주는 Resource파일들이 있다.
어플들을 보면 메뉴의 아이콘이 동일한 이미지가 출력되는 것을 자주 볼 수 있다.
이것들은 모두 안드로이드에서 제공해주는 이미지를 사용하기 때문이다.
// Compiled from R.java (version 1.5 : 49.0, super bit)
public static final class android.R$drawable {
// Field descriptor #8 I
public static final int alert_dark_frame = 17301504;
// Field descriptor #8 I
public static final int alert_light_frame = 17301505;
// Field descriptor #8 I
public static final int arrow_down_float = 17301506;
// Field descriptor #8 I
public static final int arrow_up_float = 17301507;
// Field descriptor #8 I
public static final int bottom_bar = 17301658;
// Field descriptor #8 I
public static final int btn_default = 17301508;
// Field descriptor #8 I
public static final int btn_default_small = 17301509;
// Field descriptor #8 I
public static final int btn_dialog = 17301527;
// Field descriptor #8 I
public static final int btn_dropdown = 17301510;
// Field descriptor #8 I
public static final int btn_minus = 17301511;
// Field descriptor #8 I
public static final int btn_plus = 17301512;
// Field descriptor #8 I
public static final int btn_radio = 17301513;
// Field descriptor #8 I
public static final int btn_star = 17301514;
// Field descriptor #8 I
public static final int btn_star_big_off = 17301515;
// Field descriptor #8 I
public static final int btn_star_big_on = 17301516;
// Field descriptor #8 I
public static final int button_onoff_indicator_off = 17301518;
// Field descriptor #8 I
public static final int button_onoff_indicator_on = 17301517;
// Field descriptor #8 I
public static final int checkbox_off_background = 17301519;
// Field descriptor #8 I
public static final int checkbox_on_background = 17301520;
// Field descriptor #8 I
public static final int dark_header = 17301669;
// Field descriptor #8 I
public static final int dialog_frame = 17301521;
// Field descriptor #8 I
public static final int divider_horizontal_bright = 17301522;
// Field descriptor #8 I
public static final int divider_horizontal_dark = 17301524;
// Field descriptor #8 I
public static final int divider_horizontal_dim_dark = 17301525;
// Field descriptor #8 I
public static final int divider_horizontal_textfield = 17301523;
// Field descriptor #8 I
public static final int edit_text = 17301526;
// Field descriptor #8 I
public static final int editbox_background = 17301528;
// Field descriptor #8 I
public static final int editbox_background_normal = 17301529;
// Field descriptor #8 I
public static final int editbox_dropdown_dark_frame = 17301530;
// Field descriptor #8 I
public static final int editbox_dropdown_light_frame = 17301531;
// Field descriptor #8 I
public static final int gallery_thumb = 17301532;
// Field descriptor #8 I
public static final int ic_btn_speak_now = 17301668;
// Field descriptor #8 I
public static final int ic_delete = 17301533;
// Field descriptor #8 I
public static final int ic_dialog_alert = 17301543;
// Field descriptor #8 I
public static final int ic_dialog_dialer = 17301544;
// Field descriptor #8 I
public static final int ic_dialog_email = 17301545;
// Field descriptor #8 I
public static final int ic_dialog_info = 17301659;
// Field descriptor #8 I
public static final int ic_dialog_map = 17301546;
// Field descriptor #8 I
public static final int ic_input_add = 17301547;
// Field descriptor #8 I
public static final int ic_input_delete = 17301548;
// Field descriptor #8 I
public static final int ic_input_get = 17301549;
// Field descriptor #8 I
public static final int ic_lock_idle_alarm = 17301550;
// Field descriptor #8 I
public static final int ic_lock_idle_charging = 17301534;
// Field descriptor #8 I
public static final int ic_lock_idle_lock = 17301535;
// Field descriptor #8 I
public static final int ic_lock_idle_low_battery = 17301536;
// Field descriptor #8 I
public static final int ic_lock_lock = 17301551;
// Field descriptor #8 I
public static final int ic_lock_power_off = 17301552;
// Field descriptor #8 I
public static final int ic_lock_silent_mode = 17301553;
// Field descriptor #8 I
public static final int ic_lock_silent_mode_off = 17301554;
// Field descriptor #8 I
public static final int ic_media_ff = 17301537;
// Field descriptor #8 I
public static final int ic_media_next = 17301538;
// Field descriptor #8 I
public static final int ic_media_pause = 17301539;
// Field descriptor #8 I
public static final int ic_media_play = 17301540;
// Field descriptor #8 I
public static final int ic_media_previous = 17301541;
// Field descriptor #8 I
public static final int ic_media_rew = 17301542;
// Field descriptor #8 I
public static final int ic_menu_add = 17301555;
// Field descriptor #8 I
public static final int ic_menu_agenda = 17301556;
// Field descriptor #8 I
public static final int ic_menu_always_landscape_portrait = 17301557;
// Field descriptor #8 I
public static final int ic_menu_call = 17301558;
// Field descriptor #8 I
public static final int ic_menu_camera = 17301559;
// Field descriptor #8 I
public static final int ic_menu_close_clear_cancel = 17301560;
// Field descriptor #8 I
public static final int ic_menu_compass = 17301561;
// Field descriptor #8 I
public static final int ic_menu_crop = 17301562;
// Field descriptor #8 I
public static final int ic_menu_day = 17301563;
// Field descriptor #8 I
public static final int ic_menu_delete = 17301564;
// Field descriptor #8 I
public static final int ic_menu_directions = 17301565;
// Field descriptor #8 I
public static final int ic_menu_edit = 17301566;
// Field descriptor #8 I
public static final int ic_menu_gallery = 17301567;
// Field descriptor #8 I
public static final int ic_menu_help = 17301568;
// Field descriptor #8 I
public static final int ic_menu_info_details = 17301569;
// Field descriptor #8 I
public static final int ic_menu_manage = 17301570;
// Field descriptor #8 I
public static final int ic_menu_mapmode = 17301571;
// Field descriptor #8 I
public static final int ic_menu_month = 17301572;
// Field descriptor #8 I
public static final int ic_menu_more = 17301573;
// Field descriptor #8 I
public static final int ic_menu_my_calendar = 17301574;
// Field descriptor #8 I
public static final int ic_menu_mylocation = 17301575;
// Field descriptor #8 I
public static final int ic_menu_myplaces = 17301576;
// Field descriptor #8 I
public static final int ic_menu_preferences = 17301577;
// Field descriptor #8 I
public static final int ic_menu_recent_history = 17301578;
// Field descriptor #8 I
public static final int ic_menu_report_image = 17301579;
// Field descriptor #8 I
public static final int ic_menu_revert = 17301580;
// Field descriptor #8 I
public static final int ic_menu_rotate = 17301581;
// Field descriptor #8 I
public static final int ic_menu_save = 17301582;
// Field descriptor #8 I
public static final int ic_menu_search = 17301583;
// Field descriptor #8 I
public static final int ic_menu_send = 17301584;
// Field descriptor #8 I
public static final int ic_menu_set_as = 17301585;
// Field descriptor #8 I
public static final int ic_menu_share = 17301586;
// Field descriptor #8 I
public static final int ic_menu_slideshow = 17301587;
// Field descriptor #8 I
public static final int ic_menu_sort_alphabetically = 17301660;
// Field descriptor #8 I
public static final int ic_menu_sort_by_size = 17301661;
// Field descriptor #8 I
public static final int ic_menu_today = 17301588;
// Field descriptor #8 I
public static final int ic_menu_upload = 17301589;
// Field descriptor #8 I
public static final int ic_menu_upload_you_tube = 17301590;
// Field descriptor #8 I
public static final int ic_menu_view = 17301591;
// Field descriptor #8 I
public static final int ic_menu_week = 17301592;
// Field descriptor #8 I
public static final int ic_menu_zoom = 17301593;
// Field descriptor #8 I
public static final int ic_notification_clear_all = 17301594;
// Field descriptor #8 I
public static final int ic_notification_overlay = 17301595;
// Field descriptor #8 I
public static final int ic_partial_secure = 17301596;
// Field descriptor #8 I
public static final int ic_popup_disk_full = 17301597;
// Field descriptor #8 I
public static final int ic_popup_reminder = 17301598;
// Field descriptor #8 I
public static final int ic_popup_sync = 17301599;
// Field descriptor #8 I
public static final int ic_search_category_default = 17301600;
// Field descriptor #8 I
public static final int ic_secure = 17301601;
// Field descriptor #8 I
public static final int list_selector_background = 17301602;
// Field descriptor #8 I
public static final int menu_frame = 17301603;
// Field descriptor #8 I
public static final int menu_full_frame = 17301604;
// Field descriptor #8 I
public static final int menuitem_background = 17301605;
// Field descriptor #8 I
public static final int picture_frame = 17301606;
// Field descriptor #8 I
public static final int presence_away = 17301607;
// Field descriptor #8 I
public static final int presence_busy = 17301608;
// Field descriptor #8 I
public static final int presence_invisible = 17301609;
// Field descriptor #8 I
public static final int presence_offline = 17301610;
// Field descriptor #8 I
public static final int presence_online = 17301611;
// Field descriptor #8 I
public static final int progress_horizontal = 17301612;
// Field descriptor #8 I
public static final int progress_indeterminate_horizontal = 17301613;
// Field descriptor #8 I
public static final int radiobutton_off_background = 17301614;
// Field descriptor #8 I
public static final int radiobutton_on_background = 17301615;
// Field descriptor #8 I
public static final int screen_background_dark = 17301656;
// Field descriptor #8 I
public static final int screen_background_dark_transparent = 17301673;
// Field descriptor #8 I
public static final int screen_background_light = 17301657;
// Field descriptor #8 I
public static final int screen_background_light_transparent = 17301674;
// Field descriptor #8 I
public static final int spinner_background = 17301616;
// Field descriptor #8 I
public static final int spinner_dropdown_background = 17301617;
// Field descriptor #8 I
public static final int star_big_off = 17301619;
// Field descriptor #8 I
public static final int star_big_on = 17301618;
// Field descriptor #8 I
public static final int star_off = 17301621;
// Field descriptor #8 I
public static final int star_on = 17301620;
// Field descriptor #8 I
public static final int stat_notify_call_mute = 17301622;
// Field descriptor #8 I
public static final int stat_notify_chat = 17301623;
// Field descriptor #8 I
public static final int stat_notify_error = 17301624;
// Field descriptor #8 I
public static final int stat_notify_missed_call = 17301631;
// Field descriptor #8 I
public static final int stat_notify_more = 17301625;
// Field descriptor #8 I
public static final int stat_notify_sdcard = 17301626;
// Field descriptor #8 I
public static final int stat_notify_sdcard_prepare = 17301675;
// Field descriptor #8 I
public static final int stat_notify_sdcard_usb = 17301627;
// Field descriptor #8 I
public static final int stat_notify_sync = 17301628;
// Field descriptor #8 I
public static final int stat_notify_sync_noanim = 17301629;
// Field descriptor #8 I
public static final int stat_notify_voicemail = 17301630;
// Field descriptor #8 I
public static final int stat_sys_data_bluetooth = 17301632;
// Field descriptor #8 I
public static final int stat_sys_download = 17301633;
// Field descriptor #8 I
public static final int stat_sys_download_done = 17301634;
// Field descriptor #8 I
public static final int stat_sys_headset = 17301635;
// Field descriptor #8 I
public static final int stat_sys_phone_call = 17301636;
// Field descriptor #8 I
public static final int stat_sys_phone_call_forward = 17301637;
// Field descriptor #8 I
public static final int stat_sys_phone_call_on_hold = 17301638;
// Field descriptor #8 I
public static final int stat_sys_speakerphone = 17301639;
// Field descriptor #8 I
public static final int stat_sys_upload = 17301640;
// Field descriptor #8 I
public static final int stat_sys_upload_done = 17301641;
// Field descriptor #8 I
public static final int stat_sys_vp_phone_call = 17301671;
// Field descriptor #8 I
public static final int stat_sys_vp_phone_call_on_hold = 17301672;
// Field descriptor #8 I
public static final int stat_sys_warning = 17301642;
// Field descriptor #8 I
public static final int status_bar_item_app_background = 17301643;
// Field descriptor #8 I
public static final int status_bar_item_background = 17301644;
// Field descriptor #8 I
public static final int sym_action_call = 17301645;
// Field descriptor #8 I
public static final int sym_action_chat = 17301646;
// Field descriptor #8 I
public static final int sym_action_email = 17301647;
// Field descriptor #8 I
public static final int sym_call_incoming = 17301648;
// Field descriptor #8 I
public static final int sym_call_missed = 17301649;
// Field descriptor #8 I
public static final int sym_call_outgoing = 17301650;
// Field descriptor #8 I
public static final int sym_contact_card = 17301652;
// Field descriptor #8 I
public static final int sym_def_app_icon = 17301651;
// Field descriptor #8 I
public static final int title_bar = 17301653;
// Field descriptor #8 I
public static final int title_bar_tall = 17301670;
// Field descriptor #8 I
public static final int toast_frame = 17301654;
// Field descriptor #8 I
public static final int zoom_plate = 17301655;
// Method descriptor #342 ()V
// Stack: 3, Locals: 1
public R$drawable();
0 aload_0 [this]
1 invokespecial java.lang.Object() [1]
4 new java.lang.RuntimeException [2]
7 dup
8 ldc <String "Stub!"> [3]
10 invokespecial java.lang.RuntimeException(java.lang.String) [4]
13 athrow
Line numbers:
[pc: 0, line: 761]
Local variable table:
[pc: 0, pc: 14] local: this index: 0 type: android.R.drawable
Inner classes:
[inner class info: #5 android/R$drawable, outer class info: #356 android/R
inner name: #347 drawable, accessflags: 25 public static final]
}
사용법은 아래와 같다.
이렇게 안드로이드에서 제공해주는 Resource를 사용할 경우 독창성은 없으나 사용자들이 이미지만 보고도 쉽게 해당 동작을 이해할 수 있다.