編輯:關於android開發
首先,在assets資源文件下放入圖標字體庫。
我這兒采用的是fontawesome-webfont.ttf
然後, 在安卓中加載這個資源文件
Typeface fontFace = Typeface.createFromAsset(context.getAssets(), "fontawesome-webfont.ttf");
自定義一個string.xml文件存放這些字體庫的對應引用
<?xml version="1.0" encoding="utf-8"?> <!-- http://fortawesome.github.io/Font-Awesome/cheatsheet/ --> <resources> <string name="fa_500px"></string> <string name="fa_adjust"></string> <string name="fa_adn"></string> <string name="fa_align_center"></string> <string name="fa_align_justify"></string> <string name="fa_align_left"></string> <string name="fa_align_right"></string> <string name="fa_amazon"></string> <string name="fa_ambulance"></string> <string name="fa_anchor"></string> <string name="fa_android"></string> <string name="fa_angellist"></string> <string name="fa_angle_double_down"></string> <string name="fa_angle_double_left"></string> <string name="fa_angle_double_right"></string> <string name="fa_angle_double_up"></string> <string name="fa_angle_down"></string> <string name="fa_angle_left"></string> <string name="fa_angle_right"></string> <string name="fa_angle_up"></string> <string name="fa_apple"></string> <string name="fa_archive"></string> <string name="fa_area_chart"></string> <string name="fa_arrow_circle_down"></string> <string name="fa_arrow_circle_left"></string> <string name="fa_arrow_circle_o_down"></string> <string name="fa_arrow_circle_o_left"></string> <string name="fa_arrow_circle_o_right"></string> <string name="fa_arrow_circle_o_up"></string> <string name="fa_arrow_circle_right"></string> <string name="fa_arrow_circle_up"></string> <string name="fa_arrow_down"></string> <string name="fa_arrow_left"></string> <string name="fa_arrow_right"></string> <string name="fa_arrow_up"></string> <string name="fa_arrows"></string> <string name="fa_arrows_alt"></string> <string name="fa_arrows_h"></string> <string name="fa_arrows_v"></string> <string name="fa_asterisk"></string> <string name="fa_at"></string> <string name="fa_automobile"></string> <string name="fa_backward"></string> <string name="fa_balance_scale"></string> <string name="fa_ban"></string> <string name="fa_bank"></string> <string name="fa_bar_chart"></string> <string name="fa_bar_chart_o"></string> <string name="fa_barcode"></string> <string name="fa_bars"></string> <string name="fa_battery_0"></string> <string name="fa_battery_1"></string> <string name="fa_battery_2"></string> <string name="fa_battery_3"></string> <string name="fa_battery_4"></string> <string name="fa_battery_empty"></string> <string name="fa_battery_full"></string> <string name="fa_battery_half"></string> <string name="fa_battery_quarter"></string> <string name="fa_battery_three_quarters"></string> <string name="fa_bed"></string> <string name="fa_beer"></string> <string name="fa_behance"></string> <string name="fa_behance_square"></string> <string name="fa_bell"></string> <string name="fa_bell_o"></string> <string name="fa_bell_slash"></string> <string name="fa_bell_slash_o"></string> <string name="fa_bicycle"></string> <string name="fa_binoculars"></string> <string name="fa_birthday_cake"></string> <string name="fa_bitbucket"></string> <string name="fa_bitbucket_square"></string> <string name="fa_bitcoin"></string> <string name="fa_black_tie"></string> <string name="fa_bluetooth"></string> <string name="fa_bluetooth_b"></string> <string name="fa_bold"></string> <string name="fa_bolt"></string> <string name="fa_bomb"></string> <string name="fa_book"></string> <string name="fa_bookmark"></string> <string name="fa_bookmark_o"></string> <string name="fa_briefcase"></string> <string name="fa_btc"></string> <string name="fa_bug"></string> <string name="fa_building"></string> <string name="fa_building_o"></string> <string name="fa_bullhorn"></string> <string name="fa_bullseye"></string> <string name="fa_bus"></string> <string name="fa_buysellads"></string> <string name="fa_cab"></string> <string name="fa_calculator"></string> <string name="fa_calendar"></string> <string name="fa_calendar_check_o"></string> <string name="fa_calendar_minus_o"></string> <string name="fa_calendar_o"></string> <string name="fa_calendar_plus_o"></string> <string name="fa_calendar_times_o"></string> <string name="fa_camera"></string> <string name="fa_camera_retro"></string> <string name="fa_car"></string> <string name="fa_caret_down"></string> <string name="fa_caret_left"></string> <string name="fa_caret_right"></string> <string name="fa_caret_square_o_down"></string> <string name="fa_caret_square_o_left"></string> <string name="fa_caret_square_o_right"></string> <string name="fa_caret_square_o_up"></string> <string name="fa_caret_up"></string> <string name="fa_cart_arrow_down"></string> <string name="fa_cart_plus"></string> <string name="fa_cc"></string> <string name="fa_cc_amex"></string> <string name="fa_cc_diners_club"></string> <string name="fa_cc_discover"></string> <string name="fa_cc_jcb"></string> <string name="fa_cc_mastercard"></string> <string name="fa_cc_paypal"></string> <string name="fa_cc_stripe"></string> <string name="fa_cc_visa"></string> <string name="fa_certificate"></string> <string name="fa_chain"></string> <string name="fa_chain_broken"></string> <string name="fa_check"></string> <string name="fa_check_circle"></string> <string name="fa_check_circle_o"></string> <string name="fa_check_square"></string> <string name="fa_check_square_o"></string> <string name="fa_chevron_circle_down"></string> <string name="fa_chevron_circle_left"></string> <string name="fa_chevron_circle_right"></string> <string name="fa_chevron_circle_up"></string> <string name="fa_chevron_down"></string> <string name="fa_chevron_left"></string> <string name="fa_chevron_right"></string> <string name="fa_chevron_up"></string> <string name="fa_child"></string> <string name="fa_chrome"></string> <string name="fa_circle"></string> <string name="fa_circle_o"></string> <string name="fa_circle_o_notch"></string> <string name="fa_circle_thin"></string> <string name="fa_clipboard"></string> <string name="fa_clock_o"></string> <string name="fa_clone"></string> <string name="fa_close"></string> <string name="fa_cloud"></string> <string name="fa_cloud_download"></string> <string name="fa_cloud_upload"></string> <string name="fa_cny"></string> <string name="fa_code"></string> <string name="fa_code_fork"></string> <string name="fa_codepen"></string> <string name="fa_codiepie"></string> <string name="fa_coffee"></string> <string name="fa_cog"></string> <string name="fa_cogs"></string> <string name="fa_columns"></string> <string name="fa_comment"></string> <string name="fa_comment_o"></string> <string name="fa_commenting"></string> <string name="fa_commenting_o"></string> <string name="fa_comments"></string> <string name="fa_comments_o"></string> <string name="fa_compass"></string> <string name="fa_compress"></string> <string name="fa_connectdevelop"></string> <string name="fa_contao"></string> <string name="fa_copy"></string> <string name="fa_copyright"></string> <string name="fa_creative_commons"></string> <string name="fa_credit_card"></string> <string name="fa_credit_card_alt"></string> <string name="fa_crop"></string> <string name="fa_crosshairs"></string> <string name="fa_css3"></string> <string name="fa_cube"></string> <string name="fa_cubes"></string> <string name="fa_cut"></string> <string name="fa_cutlery"></string> <string name="fa_dashboard"></string> <string name="fa_dashcube"></string> <string name="fa_database"></string> <string name="fa_dedent"></string> <string name="fa_delicious"></string> <string name="fa_desktop"></string> <string name="fa_deviantart"></string> <string name="fa_diamond"></string> <string name="fa_digg"></string> <string name="fa_dollar"></string> <string name="fa_dot_circle_o"></string> <string name="fa_download"></string> <string name="fa_dribbble"></string> <string name="fa_dropbox"></string> <string name="fa_drupal"></string> <string name="fa_edge"></string> <string name="fa_edit"></string> <string name="fa_eject"></string> <string name="fa_ellipsis_h"></string> <string name="fa_ellipsis_v"></string> <string name="fa_empire"></string> <string name="fa_envelope"></string> <string name="fa_envelope_o"></string> <string name="fa_envelope_square"></string> <string name="fa_eraser"></string> <string name="fa_eur"></string> <string name="fa_euro"></string> <string name="fa_exchange"></string> <string name="fa_exclamation"></string> <string name="fa_exclamation_circle"></string> <string name="fa_exclamation_triangle"></string> <string name="fa_expand"></string> <string name="fa_expeditedssl"></string> <string name="fa_external_link"></string> <string name="fa_external_link_square"></string> <string name="fa_eye"></string> <string name="fa_eye_slash"></string> <string name="fa_eyedropper"></string> <string name="fa_facebook"></string> <string name="fa_facebook_f"></string> <string name="fa_facebook_official"></string> <string name="fa_facebook_square"></string> <string name="fa_fast_backward"></string> <string name="fa_fast_forward"></string> <string name="fa_fax"></string> <string name="fa_feed"></string> <string name="fa_female"></string> <string name="fa_fighter_jet"></string> <string name="fa_file"></string> <string name="fa_file_archive_o"></string> <string name="fa_file_audio_o"></string> <string name="fa_file_code_o"></string> <string name="fa_file_excel_o"></string> <string name="fa_file_image_o"></string> <string name="fa_file_movie_o"></string> <string name="fa_file_o"></string> <string name="fa_file_pdf_o"></string> <string name="fa_file_photo_o"></string> <string name="fa_file_picture_o"></string> <string name="fa_file_powerpoint_o"></string> <string name="fa_file_sound_o"></string> <string name="fa_file_text"></string> <string name="fa_file_text_o"></string> <string name="fa_file_video_o"></string> <string name="fa_file_word_o"></string> <string name="fa_file_zip_o"></string> <string name="fa_files_o"></string> <string name="fa_film"></string> <string name="fa_filter"></string> <string name="fa_fire"></string> <string name="fa_fire_extinguisher"></string> <string name="fa_firefox"></string> <string name="fa_flag"></string> <string name="fa_flag_checkered"></string> <string name="fa_flag_o"></string> <string name="fa_flash"></string> <string name="fa_flask"></string> <string name="fa_flickr"></string> <string name="fa_floppy_o"></string> <string name="fa_folder"></string> <string name="fa_folder_o"></string> <string name="fa_folder_open"></string> <string name="fa_folder_open_o"></string> <string name="fa_font"></string> <string name="fa_fonticons"></string> <string name="fa_fort_awesome"></string> <string name="fa_forumbee"></string> <string name="fa_forward"></string> <string name="fa_foursquare"></string> <string name="fa_frown_o"></string> <string name="fa_futbol_o"></string> <string name="fa_gamepad"></string> <string name="fa_gavel"></string> <string name="fa_gbp"></string> <string name="fa_ge"></string> <string name="fa_gear"></string> <string name="fa_gears"></string> <string name="fa_genderless"></string> <string name="fa_get_pocket"></string> <string name="fa_gg"></string> <string name="fa_gg_circle"></string> <string name="fa_gift"></string> <string name="fa_git"></string> <string name="fa_git_square"></string> <string name="fa_github"></string> <string name="fa_github_alt"></string> <string name="fa_github_square"></string> <string name="fa_gittip"></string> <string name="fa_glass"></string> <string name="fa_globe"></string> <string name="fa_google"></string> <string name="fa_google_plus"></string> <string name="fa_google_plus_square"></string> <string name="fa_google_wallet"></string> <string name="fa_graduation_cap"></string> <string name="fa_gratipay"></string> <string name="fa_group"></string> <string name="fa_h_square"></string> <string name="fa_hacker_news"></string> <string name="fa_hand_grab_o"></string> <string name="fa_hand_lizard_o"></string> <string name="fa_hand_o_down"></string> <string name="fa_hand_o_left"></string> <string name="fa_hand_o_right"></string> <string name="fa_hand_o_up"></string> <string name="fa_hand_paper_o"></string> <string name="fa_hand_peace_o"></string> <string name="fa_hand_pointer_o"></string> <string name="fa_hand_rock_o"></string> <string name="fa_hand_scissors_o"></string> <string name="fa_hand_spock_o"></string> <string name="fa_hand_stop_o"></string> <string name="fa_hashtag"></string> <string name="fa_hdd_o"></string> <string name="fa_header"></string> <string name="fa_headphones"></string> <string name="fa_heart"></string> <string name="fa_heart_o"></string> <string name="fa_heartbeat"></string> <string name="fa_history"></string> <string name="fa_home"></string> <string name="fa_hospital_o"></string> <string name="fa_hotel"></string> <string name="fa_hourglass"></string> <string name="fa_hourglass_1"></string> <string name="fa_hourglass_2"></string> <string name="fa_hourglass_3"></string> <string name="fa_hourglass_end"></string> <string name="fa_hourglass_half"></string> <string name="fa_hourglass_o"></string> <string name="fa_hourglass_start"></string> <string name="fa_houzz"></string> <string name="fa_html5"></string> <string name="fa_i_cursor"></string> <string name="fa_ils"></string> <string name="fa_image"></string> <string name="fa_inbox"></string> <string name="fa_indent"></string> <string name="fa_industry"></string> <string name="fa_info"></string> <string name="fa_info_circle"></string> <string name="fa_inr"></string> <string name="fa_instagram"></string> <string name="fa_institution"></string> <string name="fa_internet_explorer"></string> <string name="fa_intersex"></string> <string name="fa_ioxhost"></string> <string name="fa_italic"></string> <string name="fa_joomla"></string> <string name="fa_jpy"></string> <string name="fa_jsfiddle"></string> <string name="fa_key"></string> <string name="fa_keyboard_o"></string> <string name="fa_krw"></string> <string name="fa_language"></string> <string name="fa_laptop"></string> <string name="fa_lastfm"></string> <string name="fa_lastfm_square"></string> <string name="fa_leaf"></string> <string name="fa_leanpub"></string> <string name="fa_legal"></string> <string name="fa_lemon_o"></string> <string name="fa_level_down"></string> <string name="fa_level_up"></string> <string name="fa_life_bouy"></string> <string name="fa_life_buoy"></string> <string name="fa_life_ring"></string> <string name="fa_life_saver"></string> <string name="fa_lightbulb_o"></string> <string name="fa_line_chart"></string> <string name="fa_link"></string> <string name="fa_linkedin"></string> <string name="fa_linkedin_square"></string> <string name="fa_linux"></string> <string name="fa_list"></string> <string name="fa_list_alt"></string> <string name="fa_list_ol"></string> <string name="fa_list_ul"></string> <string name="fa_location_arrow"></string> <string name="fa_lock"></string> <string name="fa_long_arrow_down"></string> <string name="fa_long_arrow_left"></string> <string name="fa_long_arrow_right"></string> <string name="fa_long_arrow_up"></string> <string name="fa_magic"></string> <string name="fa_magnet"></string> <string name="fa_mail_forward"></string> <string name="fa_mail_reply"></string> <string name="fa_mail_reply_all"></string> <string name="fa_male"></string> <string name="fa_map"></string> <string name="fa_map_marker"></string> <string name="fa_map_o"></string> <string name="fa_map_pin"></string> <string name="fa_map_signs"></string> <string name="fa_mars"></string> <string name="fa_mars_double"></string> <string name="fa_mars_stroke"></string> <string name="fa_mars_stroke_h"></string> <string name="fa_mars_stroke_v"></string> <string name="fa_maxcdn"></string> <string name="fa_meanpath"></string> <string name="fa_medium"></string> <string name="fa_medkit"></string> <string name="fa_meh_o"></string> <string name="fa_mercury"></string> <string name="fa_microphone"></string> <string name="fa_microphone_slash"></string> <string name="fa_minus"></string> <string name="fa_minus_circle"></string> <string name="fa_minus_square"></string> <string name="fa_minus_square_o"></string> <string name="fa_mixcloud"></string> <string name="fa_mobile"></string> <string name="fa_mobile_phone"></string> <string name="fa_modx"></string> <string name="fa_money"></string> <string name="fa_moon_o"></string> <string name="fa_mortar_board"></string> <string name="fa_motorcycle"></string> <string name="fa_mouse_pointer"></string> <string name="fa_music"></string> <string name="fa_navicon"></string> <string name="fa_neuter"></string> <string name="fa_newspaper_o"></string> <string name="fa_object_group"></string> <string name="fa_object_ungroup"></string> <string name="fa_odnoklassniki"></string> <string name="fa_odnoklassniki_square"></string> <string name="fa_opencart"></string> <string name="fa_openid"></string> <string name="fa_opera"></string> <string name="fa_optin_monster"></string> <string name="fa_outdent"></string> <string name="fa_pagelines"></string> <string name="fa_paint_brush"></string> <string name="fa_paper_plane"></string> <string name="fa_paper_plane_o"></string> <string name="fa_paperclip"></string> <string name="fa_paragraph"></string> <string name="fa_paste"></string> <string name="fa_pause"></string> <string name="fa_pause_circle"></string> <string name="fa_pause_circle_o"></string> <string name="fa_paw"></string> <string name="fa_paypal"></string> <string name="fa_pencil"></string> <string name="fa_pencil_square"></string> <string name="fa_pencil_square_o"></string> <string name="fa_percent"></string> <string name="fa_phone"></string> <string name="fa_phone_square"></string> <string name="fa_photo"></string> <string name="fa_picture_o"></string> <string name="fa_pie_chart"></string> <string name="fa_pied_piper"></string> <string name="fa_pied_piper_alt"></string> <string name="fa_pinterest"></string> <string name="fa_pinterest_p"></string> <string name="fa_pinterest_square"></string> <string name="fa_plane"></string> <string name="fa_play"></string> <string name="fa_play_circle"></string> <string name="fa_play_circle_o"></string> <string name="fa_plug"></string> <string name="fa_plus"></string> <string name="fa_plus_circle"></string> <string name="fa_plus_square"></string> <string name="fa_plus_square_o"></string> <string name="fa_power_off"></string> <string name="fa_print"></string> <string name="fa_product_hunt"></string> <string name="fa_puzzle_piece"></string> <string name="fa_qq"></string> <string name="fa_qrcode"></string> <string name="fa_question"></string> <string name="fa_question_circle"></string> <string name="fa_quote_left"></string> <string name="fa_quote_right"></string> <string name="fa_ra"></string> <string name="fa_random"></string> <string name="fa_rebel"></string> <string name="fa_recycle"></string> <string name="fa_reddit"></string> <string name="fa_reddit_alien"></string> <string name="fa_reddit_square"></string> <string name="fa_refresh"></string> <string name="fa_registered"></string> <string name="fa_remove"></string> <string name="fa_renren"></string> <string name="fa_reorder"></string> <string name="fa_repeat"></string> <string name="fa_reply"></string> <string name="fa_reply_all"></string> <string name="fa_retweet"></string> <string name="fa_rmb"></string> <string name="fa_road"></string> <string name="fa_rocket"></string> <string name="fa_rotate_left"></string> <string name="fa_rotate_right"></string> <string name="fa_rouble"></string> <string name="fa_rss"></string> <string name="fa_rss_square"></string> <string name="fa_rub"></string> <string name="fa_ruble"></string> <string name="fa_rupee"></string> <string name="fa_safari"></string> <string name="fa_save"></string> <string name="fa_scissors"></string> <string name="fa_scribd"></string> <string name="fa_search"></string> <string name="fa_search_minus"></string> <string name="fa_search_plus"></string> <string name="fa_sellsy"></string> <string name="fa_send"></string> <string name="fa_send_o"></string> <string name="fa_server"></string> <string name="fa_share"></string> <string name="fa_share_alt"></string> <string name="fa_share_alt_square"></string> <string name="fa_share_square"></string> <string name="fa_share_square_o"></string> <string name="fa_shekel"></string> <string name="fa_sheqel"></string> <string name="fa_shield"></string> <string name="fa_ship"></string> <string name="fa_shirtsinbulk"></string> <string name="fa_shopping_bag"></string> <string name="fa_shopping_basket"></string> <string name="fa_shopping_cart"></string> <string name="fa_sign_in"></string> <string name="fa_sign_out"></string> <string name="fa_signal"></string> <string name="fa_simplybuilt"></string> <string name="fa_sitemap"></string> <string name="fa_skyatlas"></string> <string name="fa_skype"></string> <string name="fa_slack"></string> <string name="fa_sliders"></string> <string name="fa_slideshare"></string> <string name="fa_smile_o"></string> <string name="fa_soccer_ball_o"></string> <string name="fa_sort"></string> <string name="fa_sort_alpha_asc"></string> <string name="fa_sort_alpha_desc"></string> <string name="fa_sort_amount_asc"></string> <string name="fa_sort_amount_desc"></string> <string name="fa_sort_asc"></string> <string name="fa_sort_desc"></string> <string name="fa_sort_down"></string> <string name="fa_sort_numeric_asc"></string> <string name="fa_sort_numeric_desc"></string> <string name="fa_sort_up"></string> <string name="fa_soundcloud"></string> <string name="fa_space_shuttle"></string> <string name="fa_spinner"></string> <string name="fa_spoon"></string> <string name="fa_spotify"></string> <string name="fa_square"></string> <string name="fa_square_o"></string> <string name="fa_stack_exchange"></string> <string name="fa_stack_overflow"></string> <string name="fa_star"></string> <string name="fa_star_half"></string> <string name="fa_star_half_empty"></string> <string name="fa_star_half_full"></string> <string name="fa_star_half_o"></string> <string name="fa_star_o"></string> <string name="fa_steam"></string> <string name="fa_steam_square"></string> <string name="fa_step_backward"></string> <string name="fa_step_forward"></string> <string name="fa_stethoscope"></string> <string name="fa_sticky_note"></string> <string name="fa_sticky_note_o"></string> <string name="fa_stop"></string> <string name="fa_stop_circle"></string> <string name="fa_stop_circle_o"></string> <string name="fa_street_view"></string> <string name="fa_strikethrough"></string> <string name="fa_stumbleupon"></string> <string name="fa_stumbleupon_circle"></string> <string name="fa_subscript"></string> <string name="fa_subway"></string> <string name="fa_suitcase"></string> <string name="fa_sun_o"></string> <string name="fa_superscript"></string> <string name="fa_support"></string> <string name="fa_table"></string> <string name="fa_tablet"></string> <string name="fa_tachometer"></string> <string name="fa_tag"></string> <string name="fa_tags"></string> <string name="fa_tasks"></string> <string name="fa_taxi"></string> <string name="fa_television"></string> <string name="fa_tencent_weibo"></string> <string name="fa_terminal"></string> <string name="fa_text_height"></string> <string name="fa_text_width"></string> <string name="fa_th"></string> <string name="fa_th_large"></string> <string name="fa_th_list"></string> <string name="fa_thumb_tack"></string> <string name="fa_thumbs_down"></string> <string name="fa_thumbs_o_down"></string> <string name="fa_thumbs_o_up"></string> <string name="fa_thumbs_up"></string> <string name="fa_ticket"></string> <string name="fa_times"></string> <string name="fa_times_circle"></string> <string name="fa_times_circle_o"></string> <string name="fa_tint"></string> <string name="fa_toggle_down"></string> <string name="fa_toggle_left"></string> <string name="fa_toggle_off"></string> <string name="fa_toggle_on"></string> <string name="fa_toggle_right"></string> <string name="fa_toggle_up"></string> <string name="fa_trademark"></string> <string name="fa_train"></string> <string name="fa_transgender"></string> <string name="fa_transgender_alt"></string> <string name="fa_trash"></string> <string name="fa_trash_o"></string> <string name="fa_tree"></string> <string name="fa_trello"></string> <string name="fa_tripadvisor"></string> <string name="fa_trophy"></string> <string name="fa_truck"></string> <string name="fa_try"></string> <string name="fa_tty"></string> <string name="fa_tumblr"></string> <string name="fa_tumblr_square"></string> <string name="fa_turkish_lira"></string> <string name="fa_tv"></string> <string name="fa_twitch"></string> <string name="fa_twitter"></string> <string name="fa_twitter_square"></string> <string name="fa_umbrella"></string> <string name="fa_underline"></string> <string name="fa_undo"></string> <string name="fa_university"></string> <string name="fa_unlink"></string> <string name="fa_unlock"></string> <string name="fa_unlock_alt"></string> <string name="fa_unsorted"></string> <string name="fa_upload"></string> <string name="fa_usb"></string> <string name="fa_usd"></string> <string name="fa_user"></string> <string name="fa_user_md"></string> <string name="fa_user_plus"></string> <string name="fa_user_secret"></string> <string name="fa_user_times"></string> <string name="fa_users"></string> <string name="fa_venus"></string> <string name="fa_venus_double"></string> <string name="fa_venus_mars"></string> <string name="fa_viacoin"></string> <string name="fa_video_camera"></string> <string name="fa_vimeo"></string> <string name="fa_vimeo_square"></string> <string name="fa_vine"></string> <string name="fa_vk"></string> <string name="fa_volume_down"></string> <string name="fa_volume_off"></string> <string name="fa_volume_up"></string> <string name="fa_warning"></string> <string name="fa_wechat"></string> <string name="fa_weibo"></string> <string name="fa_weixin"></string> <string name="fa_whatsapp"></string> <string name="fa_wheelchair"></string> <string name="fa_wifi"></string> <string name="fa_wikipedia_w"></string> <string name="fa_windows"></string> <string name="fa_won"></string> <string name="fa_wordpress"></string> <string name="fa_wrench"></string> <string name="fa_xing"></string> <string name="fa_xing_square"></string> <string name="fa_y_combinator"></string> <string name="fa_y_combinator_square"></string> <string name="fa_yahoo"></string> <string name="fa_yc"></string> <string name="fa_yc_square"></string> <string name="fa_yelp"></string> <string name="fa_yen"></string> <string name="fa_youtube"></string> <string name="fa_youtube_play"></string> <string name="fa_youtube_square"></string> </resources>
在頁面中使用TextView作為圖標, 設置TextView的text屬性為自定義string.xml中對應的值, 同時給這個TextView設置一個setTypeface(fontFace);
這樣,就可以以圖標的形式顯示這個字體庫內的小圖標了, 可以自定義顏色、大小之類。非常好用。
Android jni簡便開發流程,androidjni流程《Android jni helloworld》中介紹了開發jni helloworld的步驟,本文將介紹jn
Android 查看自己的keystore的別名及相關信息,androidkeystore1.在DOS窗口下進入自己的keystore所在位置,輸入 &nb
Android handler 詳解(面試百分之100問到),androidhandlerhandler在Android中被稱為“消息處理者”,在
android:eclipse看著很舒服的字體和啟動速度很快android模擬器 下載後 在c盤windows/font文件夾下添加解壓後的字體即可 然後重啟ecli