dileber android 框架:乁( ˙Ω˙ )厂 跳转链接 dileber android框架
怎么说呢?既然看到了就在github上star一下呗 (´ཀ`」 ∠)
最近我在这套框架里添加了只有"98KB" 的高清图标库,免费使用。非常不错的图标库,简单实用方便快捷。
展示所有图标如下图:
使用实例(非常简单的用户等级设计,用了dileber框架,设计等级星星展示,一句话代码就可以了,so easy):
代码使用:
如果不懂dileber框架的人,请看我之前的博客:首先你的继承于SApplication 的Application 开启使用默认图标库:
@Override
public void start() {
loadDeaultFont = true;
}
如果想要使用星星的等级指示使用如下代码
在layout中创建一个TextView 使用UDefaultFont.setStar方法便可以直接展示出星星。
第一个参数2是表示2颗满心,5表示有五颗星
TextView user_star = findViewById(R.id.user_star);
UDefaultFont.setStar(user_star,2,5);
展示部分图标代码(所有图标均在资源string中)
int[] font = {R.string.dileber_icon_home,
R.string.dileber_icon_home2,
R.string.dileber_icon_home3,
R.string.dileber_icon_office,
R.string.dileber_icon_newspaper,
R.string.dileber_icon_pencil,
R.string.dileber_icon_pencil2,
R.string.dileber_icon_quill,
R.string.dileber_icon_pen,
R.string.dileber_icon_blog,
R.string.dileber_icon_eyedropper,
R.string.dileber_icon_droplet,
R.string.dileber_icon_paint_format,
R.string.dileber_icon_image,
R.string.dileber_icon_images,
R.string.dileber_icon_camera,
R.string.dileber_icon_headphones,
R.string.dileber_icon_music,
R.string.dileber_icon_play,
R.string.dileber_icon_film,
R.string.dileber_icon_video_camera,
R.string.dileber_icon_dice,
R.string.dileber_icon_pacman,
R.string.dileber_icon_spades,
R.string.dileber_icon_clubs,
R.string.dileber_icon_diamonds,
R.string.dileber_icon_bullhorn,
R.string.dileber_icon_connection,
R.string.dileber_icon_podcast,
R.string.dileber_icon_feed,
R.string.dileber_icon_mic,
R.string.dileber_icon_book,
R.string.dileber_icon_books,
R.string.dileber_icon_library,
R.string.dileber_icon_file_text,
R.string.dileber_icon_profile,
R.string.dileber_icon_file_empty,
R.string.dileber_icon_files_empty,
R.string.dileber_icon_file_text2,
R.string.dileber_icon_file_picture,
R.string.dileber_icon_file_music,
R.string.dileber_icon_file_play,
R.string.dileber_icon_file_video,
R.string.dileber_icon_file_zip,
R.string.dileber_icon_copy,
R.string.dileber_icon_paste,
R.string.dileber_icon_stack,
R.string.dileber_icon_folder,
R.string.dileber_icon_folder_open,
R.string.dileber_icon_folder_plus,
R.string.dileber_icon_folder_minus,
R.string.dileber_icon_folder_download,
R.string.dileber_icon_folder_upload,
R.string.dileber_icon_price_tag,
R.string.dileber_icon_price_tags,
R.string.dileber_icon_barcode,
R.string.dileber_icon_qrcode,
R.string.dileber_icon_ticket,
R.string.dileber_icon_cart,
R.string.dileber_icon_coin_dollar,
R.string.dileber_icon_coin_euro,
R.string.dileber_icon_coin_pound,
R.string.dileber_icon_coin_yen,
R.string.dileber_icon_credit_card,
R.string.dileber_icon_calculator,
R.string.dileber_icon_lifebuoy,
R.string.dileber_icon_phone,
R.string.dileber_icon_phone_hang_up,
R.string.dileber_icon_address_book,
R.string.dileber_icon_envelop,
R.string.dileber_icon_pushpin,
R.string.dileber_icon_location,
R.string.dileber_icon_location2,
R.string.dileber_icon_compass,
R.string.dileber_icon_compass2,
R.string.dileber_icon_map,
R.string.dileber_icon_map2,
R.string.dileber_icon_history,
R.string.dileber_icon_clock,
R.string.dileber_icon_clock2,
R.string.dileber_icon_alarm,
R.string.dileber_icon_bell,
R.string.dileber_icon_stopwatch,
R.string.dileber_icon_calendar,
R.string.dileber_icon_printer,
R.string.dileber_icon_keyboard,
R.string.dileber_icon_display,
R.string.dileber_icon_laptop,
R.string.dileber_icon_mobile,
R.string.dileber_icon_mobile2,
R.string.dileber_icon_tablet,
R.string.dileber_icon_tv,
R.string.dileber_icon_drawer,
R.string.dileber_icon_drawer2,
R.string.dileber_icon_box_add,
R.string.dileber_icon_box_remove,
R.string.dileber_icon_download,
R.string.dileber_icon_upload,
R.string.dileber_icon_floppy_disk,
R.string.dileber_icon_drive,
R.string.dileber_icon_database,
R.string.dileber_icon_undo,
R.string.dileber_icon_redo,
R.string.dileber_icon_undo2,
R.string.dileber_icon_redo2,
R.string.dileber_icon_forward,
R.string.dileber_icon_reply,
R.string.dileber_icon_bubble,
R.string.dileber_icon_bubbles,
R.string.dileber_icon_bubbles2,
R.string.dileber_icon_bubble2,
R.string.dileber_icon_bubbles3,
R.string.dileber_icon_bubbles4,
R.string.dileber_icon_user,
R.string.dileber_icon_users,
R.string.dileber_icon_user_plus,
R.string.dileber_icon_user_minus,
R.string.dileber_icon_user_check,
R.string.dileber_icon_user_tie,
R.string.dileber_icon_quotes_left,
R.string.dileber_icon_quotes_right,
R.string.dileber_icon_hour_glass,
R.string.dileber_icon_spinner,
R.string.dileber_icon_spinner2,
R.string.dileber_icon_spinner3,
R.string.dileber_icon_spinner4,
R.string.dileber_icon_spinner5,
R.string.dileber_icon_spinner6,
R.string.dileber_icon_spinner7,
R.string.dileber_icon_spinner8,
R.string.dileber_icon_spinner9,
R.string.dileber_icon_spinner10,
R.string.dileber_icon_spinner11,
R.string.dileber_icon_binoculars,
R.string.dileber_icon_search,
R.string.dileber_icon_zoom_in,
R.string.dileber_icon_zoom_out,
R.string.dileber_icon_enlarge,
R.string.dileber_icon_shrink,
R.string.dileber_icon_enlarge2,
R.string.dileber_icon_shrink2,
R.string.dileber_icon_key,
R.string.dileber_icon_key2,
R.string.dileber_icon_lock,
R.string.dileber_icon_unlocked,
R.string.dileber_icon_wrench,
R.string.dileber_icon_equalizer,
R.string.dileber_icon_equalizer2,
R.string.dileber_icon_cog,
R.string.dileber_icon_cogs,
R.string.dileber_icon_hammer,
R.string.dileber_icon_magic_wand,
R.string.dileber_icon_aid_kit,
R.string.dileber_icon_bug,
R.string.dileber_icon_pie_chart,
R.string.dileber_icon_stats_dots,
R.string.dileber_icon_stats_bars,
R.string.dileber_icon_stats_bars2,
R.string.dileber_icon_trophy,
R.string.dileber_icon_gift,
R.string.dileber_icon_glass,
R.string.dileber_icon_glass2,
R.string.dileber_icon_mug,
R.string.dileber_icon_spoon_knife,
R.string.dileber_icon_leaf,
R.string.dileber_icon_rocket,
R.string.dileber_icon_meter,
R.string.dileber_icon_meter2,
R.string.dileber_icon_hammer2,
R.string.dileber_icon_fire,
R.string.dileber_icon_lab,
R.string.dileber_icon_magnet,
R.string.dileber_icon_bin,
R.string.dileber_icon_bin2,
R.string.dileber_icon_briefcase,
R.string.dileber_icon_airplane,
R.string.dileber_icon_truck,
R.string.dileber_icon_road,
R.string.dileber_icon_accessibility,
R.string.dileber_icon_target,
R.string.dileber_icon_shield,
R.string.dileber_icon_power,
R.string.dileber_icon_switchs,
R.string.dileber_icon_power_cord,
R.string.dileber_icon_clipboard,
R.string.dileber_icon_list_numbered,
R.string.dileber_icon_list,
R.string.dileber_icon_list2,
R.string.dileber_icon_tree,
R.string.dileber_icon_menu,
R.string.dileber_icon_menu2,
R.string.dileber_icon_menu3,
R.string.dileber_icon_menu4,
R.string.dileber_icon_cloud,
R.string.dileber_icon_cloud_download,
R.string.dileber_icon_cloud_upload,
R.string.dileber_icon_cloud_check,
R.string.dileber_icon_download2,
R.string.dileber_icon_upload2,
R.string.dileber_icon_download3,
R.string.dileber_icon_upload3,
R.string.dileber_icon_sphere,
R.string.dileber_icon_earth,
R.string.dileber_icon_link,
R.string.dileber_icon_flag,
R.string.dileber_icon_attachment,
R.string.dileber_icon_eye,
R.string.dileber_icon_eye_plus,
R.string.dileber_icon_eye_minus,
R.string.dileber_icon_eye_blocked,
R.string.dileber_icon_bookmark,
R.string.dileber_icon_bookmarks,
R.string.dileber_icon_sun,
R.string.dileber_icon_contrast,
R.string.dileber_icon_brightness_contrast,
R.string.dileber_icon_star_empty,
R.string.dileber_icon_star_half,
R.string.dileber_icon_star_full,
R.string.dileber_icon_heart,
R.string.dileber_icon_heart_broken,
R.string.dileber_icon_man,
R.string.dileber_icon_woman,
R.string.dileber_icon_man_woman,
R.string.dileber_icon_happy,
R.string.dileber_icon_happy2,
R.string.dileber_icon_smile,
R.string.dileber_icon_smile2,
R.string.dileber_icon_tongue,
R.string.dileber_icon_tongue2,
R.string.dileber_icon_sad,
R.string.dileber_icon_sad2,
R.string.dileber_icon_wink,
R.string.dileber_icon_wink2,
R.string.dileber_icon_grin,
R.string.dileber_icon_grin2,
R.string.dileber_icon_cool,
R.string.dileber_icon_cool2,
R.string.dileber_icon_angry,
R.string.dileber_icon_angry2,
R.string.dileber_icon_evil,
R.string.dileber_icon_evil2,
R.string.dileber_icon_shocked,
R.string.dileber_icon_shocked2,
R.string.dileber_icon_baffled,
R.string.dileber_icon_baffled2,
R.string.dileber_icon_confused,
R.string.dileber_icon_confused2,
R.string.dileber_icon_neutral,
R.string.dileber_icon_neutral2,
R.string.dileber_icon_hipster,
R.string.dileber_icon_hipster2,
R.string.dileber_icon_wondering,
R.string.dileber_icon_wondering2,
R.string.dileber_icon_sleepy,
R.string.dileber_icon_sleepy2,
R.string.dileber_icon_frustrated,
R.string.dileber_icon_frustrated2,
R.string.dileber_icon_crying,
R.string.dileber_icon_crying2,
R.string.dileber_icon_point_up,
R.string.dileber_icon_point_right,
R.string.dileber_icon_point_down,
R.string.dileber_icon_point_left,
R.string.dileber_icon_warning,
R.string.dileber_icon_notification,
R.string.dileber_icon_question,
R.string.dileber_icon_plus,
R.string.dileber_icon_minus,
R.string.dileber_icon_info,
R.string.dileber_icon_cancel_circle,
R.string.dileber_icon_blocked,
R.string.dileber_icon_cross,
R.string.dileber_icon_checkmark,
R.string.dileber_icon_checkmark2,
R.string.dileber_icon_spell_check,
R.string.dileber_icon_enter,
R.string.dileber_icon_exit,
R.string.dileber_icon_play2,
R.string.dileber_icon_pause,
R.string.dileber_icon_stop,
R.string.dileber_icon_previous,
R.string.dileber_icon_next,
R.string.dileber_icon_backward,
R.string.dileber_icon_forward2,
R.string.dileber_icon_play3,
R.string.dileber_icon_pause2,
R.string.dileber_icon_stop2,
R.string.dileber_icon_backward2,
R.string.dileber_icon_forward3,
R.string.dileber_icon_first,
R.string.dileber_icon_last,
R.string.dileber_icon_previous2,
R.string.dileber_icon_next2,
R.string.dileber_icon_eject,
R.string.dileber_icon_volume_high,
R.string.dileber_icon_volume_medium,
R.string.dileber_icon_volume_low,
R.string.dileber_icon_volume_mute,
R.string.dileber_icon_volume_mute2,
R.string.dileber_icon_volume_increase,
R.string.dileber_icon_volume_decrease,
R.string.dileber_icon_loop,
R.string.dileber_icon_loop2,
R.string.dileber_icon_infinite,
R.string.dileber_icon_shuffle,
R.string.dileber_icon_arrow_up_left,
R.string.dileber_icon_arrow_up,
R.string.dileber_icon_arrow_up_right,
R.string.dileber_icon_arrow_right,
R.string.dileber_icon_arrow_down_right,
R.string.dileber_icon_arrow_down,
R.string.dileber_icon_arrow_down_left,
R.string.dileber_icon_arrow_left,
R.string.dileber_icon_arrow_up_left2,
R.string.dileber_icon_arrow_up2,
R.string.dileber_icon_arrow_up_right2,
R.string.dileber_icon_arrow_right2,
R.string.dileber_icon_arrow_down_right2,
R.string.dileber_icon_arrow_down2,
R.string.dileber_icon_arrow_down_left2,
R.string.dileber_icon_arrow_left2,
R.string.dileber_icon_circle_up,
R.string.dileber_icon_circle_right,
R.string.dileber_icon_circle_down,
R.string.dileber_icon_circle_left,
R.string.dileber_icon_tab,
R.string.dileber_icon_move_up,
R.string.dileber_icon_move_down,
R.string.dileber_icon_sort_alpha_asc,
R.string.dileber_icon_sort_alpha_desc,
R.string.dileber_icon_sort_numeric_asc,
R.string.dileber_icon_sort_numberic_desc,
R.string.dileber_icon_sort_amount_asc,
R.string.dileber_icon_sort_amount_desc,
R.string.dileber_icon_command,
R.string.dileber_icon_shift,
R.string.dileber_icon_ctrl,
R.string.dileber_icon_opt,
R.string.dileber_icon_checkbox_checked,
R.string.dileber_icon_checkbox_unchecked,
R.string.dileber_icon_radio_checked,
R.string.dileber_icon_radio_checked2,
R.string.dileber_icon_radio_unchecked,
R.string.dileber_icon_crop,
R.string.dileber_icon_make_group,
R.string.dileber_icon_ungroup,
R.string.dileber_icon_scissors,
R.string.dileber_icon_filter,
R.string.dileber_icon_font,
R.string.dileber_icon_ligature,
R.string.dileber_icon_ligature2,
R.string.dileber_icon_text_height,
R.string.dileber_icon_text_width,
R.string.dileber_icon_font_size,
R.string.dileber_icon_bold,
R.string.dileber_icon_underline,
R.string.dileber_icon_italic,
R.string.dileber_icon_strikethrough,
R.string.dileber_icon_omega,
R.string.dileber_icon_sigma,
R.string.dileber_icon_page_break,
R.string.dileber_icon_superscript,
R.string.dileber_icon_subscript,
R.string.dileber_icon_superscript2,
R.string.dileber_icon_subscript2,
R.string.dileber_icon_text_color,
R.string.dileber_icon_pagebreak,
R.string.dileber_icon_clear_formatting,
R.string.dileber_icon_table,
R.string.dileber_icon_table2,
R.string.dileber_icon_insert_template,
R.string.dileber_icon_pilcrow,
R.string.dileber_icon_ltr,
R.string.dileber_icon_rtl,
R.string.dileber_icon_section,
R.string.dileber_icon_paragraph_left,
R.string.dileber_icon_paragraph_center,
R.string.dileber_icon_paragraph_right,
R.string.dileber_icon_paragraph_justify,
R.string.dileber_icon_indent_increase,
R.string.dileber_icon_indent_decrease,
R.string.dileber_icon_share,
R.string.dileber_icon_new_tab,
R.string.dileber_icon_embed,
R.string.dileber_icon_embed2,
R.string.dileber_icon_terminal,
R.string.dileber_icon_share2,
R.string.dileber_icon_mail,
R.string.dileber_icon_flickr2,
R.string.dileber_icon_yahoo};
TextView test = findView(R.id.test);
UDefaultFont.setTextViewFonts(test,font);
点击查看更多内容
4人点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦