字幕组成品列表(Beta)
  • 写在前面
  • Android 平台
    • Game On! 游戏开发系列 - 031
      • Pie Noon - 1503060393
      • The Death of Base Game Activity - 1504030543
      • Surviving OpenGL Context Loss - 1504030546
      • WebP for Game Devs - 1504030547
      • Saved Games In-Depth (Part 1) - 1504070556
      • Saved Games In-Depth (Part 2) - 1504030548
      • Smaller Flipbook Textures with CRABBY - 1504030544
      • Google Tag Manager - 1504030545
      • Flatbuffers - 1505050794
      • Achievement Point Pointers - 1505050796
      • Frequency Scaling - 1505050797
      • Meet the Management APIs - 1501140367
      • Y U Ship Broken Games - 1505050795
    • Android 性能优化 - 088
      • Garbage Collection in Android - 1503170425
      • Performance Cost of Memory Leaks - 1503170424
      • Rendering Performance 101 - 1501130351
      • Understanding Overdraw - 1501130352
      • Understanding VSYNC - 1501130353
      • Tool - Profile GPU Rendering - 1501130354
      • Why 60fps? - 1501130355
      • Android UI and the GPU - 1501130356
      • Invalidations, Layouts, and Performance - 1501130357
      • Overdraw, Cliprect, QuickReject - 1501130358
      • Tool - Memory Monitor - 1501130363
      • Battery Performance 101 - 1501130364
      • Understanding Battery Drain on Android - 1501130365
      • Battery Drain and WakeLocks - 1501130366
      • Memory Performance 101 - 1504170661
    • I/O 2014 Android 开发专题 - 089
      • Activity Transitions - 1504020505
      • Building Apps For Android TV - 1504020520
      • Building great Android media experiences - 1504020510
      • Building a quality app from start to finish - 1504020515
      • App Indexing API - 1504020507
      • What's new in WebView - 1504010484
      • Bluetooth Low Energy - 1504010486
      • Building impressive Android media experiences - 1504010493
      • The next Generation of Authentication - 1504020497
      • Don't Alpha That Pixel! - 1504020523
      • NFC + HCE Your phone in an interactive world - 1504020509
      • Demystifying encodes and decodes of WebM - 1504020521
      • Google Cloud Messaging - 1504020524
      • Getting your Game on the Big Screen - 1504020518
      • I hear you like realtime memes - 1504020511
      • Offerize your App - 1504020506
      • Using the Android Job Scheduler - 1504020504
      • From Holo to Material - 1504020526
      • Under the Hood of Android Auto - 1504020501
      • Isolation for Android App Developers - 1504020498
      • Android Work - 1504010496
      • ExoPlayer: Adaptive video streaming on Android - 1504010489
      • Sample rates and resampling: Why can't we all just agree? - 1504010488
      • Drive Android API - 1504010485
    • Android Studio - 004
      • Layout Editor (Ep 3, Android Studio) - 1503290479
      • Introducing Gradle (Ep 2, Android Studio) - 1503170426
    • I/O 2014 Android 分发主题 - 091
      • Introduction to Google Play - 1504030534
      • Google Play: building your user community - 1504030535
      • Optimizing Apps for Education - 1504030536
      • Succeeding in Education Technology - 1504030530
      • Subscriptions Made Easy with Google Play - 1504030531
      • The world is your playground - go global with Google - 1504030533
      • Maximizing discoverability on Google Play - 1504030538
    • Android Auto - 003
      • Introduction to Android Auto - 1504130615
      • Android Auto Messaging - 1504130617
      • Android Auto Audio - 1504130616
    • Android Wear - 006
      • Designing for Android Wear - 1503210448
      • How We Customized Google Apps for Android Wear - 1503210450
      • Fullscreen apps for Android Wear - 1503210445
      • New Notification Features for Android Wear - 1503210446
      • Building Cloud-powered wearable Apps - 1503210449
      • An Introduction to Android Wear - 1503190435
      • Google I/O 2014 - Android Wear: The developer's perspective - 1503210442
      • Devoxx 2014 Interviews: Android Wear - 1503210440
      • DevBytes: Watch Faces for Android Wear - 1503210439
    • Android TV - 005
      • Using the Leanback library - 1504080588
      • Beach Buggy Racing Multiplayer with Nearby Connections (Play Services) - 1503060387
    • Android for Work - 106
      • Android for Work for Developers - 1503060390
      • App Configurations, Testing and Launchers - 1504110590
    • IO Bytes 2014 - Android - 066
      • Chrome Apps on Android and iOS - 1501080014
      • Perf Primer CPU, GPU and your Android game - 1501080017
  • Chrome 平台
    • IO Bytes 2014 - Chrome and Web - 067
      • Using the PageSpeed API - 1505070815
      • Fabulous Forms for the multi-device web - 1505070816
      • Testing multi-screen web pages - 1505070817
      • Responsive images today - 1505070819
      • Web Performance Testing at YouTube - 1505070828
      • Building sites for the multi-device web - 1505070820
      • Deep dive: Google Cloud Messaging for Chrome - 1505070827
  • Google 创业者资源
    • Coffee with a Googler - 012
      • Chat with Allen Huang of AndroidTV - 1503040384
      • Chat with Fred Chung about developer advocacy - 1503070395
      • Google Fit platform with Michelle Haq - 1503210443
      • Android Auto Product Manager Andrew Brenner - 1501120027
      • Chat with Francis Ma about Google Play services - 1501120028
    • Root Access For Startups - 077
      • What we learned building plug-ins for Android, with startup Magnet - 1503230453
      • How to use crowdfunding to your advantage, with startup Hale Devices - 1503280462
      • How to overcome customer objections when selling tech, with startup Guesswork - 1503280458
    • First Things First - 029
      • Getting started with Android: A crash-course in developing for Android - 1504120601
      • How to ask a question: conducting research for your startup - 1504120603
      • MVP Design Hacks: transform your hot idea into a validated prototype - 1504120602
      • Build something people want: Solving real problems - 1504120605
    • How I - 061
      • Use BigQuery to find my most valuable customers - 1504070573
      • Manage beta testing communities using Google Play - 1504070572
      • Use paper wireframing to build native prototypes - 1504070570
      • Used social media and $0 marketing to get 68 million users - 1504070568
      • Prep to fundraise with four questions - 1504070564
      • Validated my idea in 2 days (with no code) - 1504070562
      • Build open platforms on Android - 1504120596
      • Get cheap, automatic analytics for my business using BigQuery - 1504070571
      • Write press releases to get international media coverage - 1504070569
      • Test beta-product features using Google Apps - 1504070563
      • Use URL builder to measure ROI on social media - 1504070561
      • Use events to build DeadSocial's brand - 1504070557
      • Use BigQuery to visualize streaming data - 1503220452
      • Find, screen, and hire developers - 1503120406
      • Drive engagement with social challenges - 1504070558
  • 设计
    • DesignBytes - 017
      • Paper and Ink: The Materials that Matter - 1505050793
  • 云计算
    • DevBytes: Google Cloud Platform - 021
      • Powering the next killer app with the Google Cloud Platform - 1504210672
      • Introduction to Google Cloud Endpoints - 1504210675
      • The Beauty of Scale with Google Cloud Platform - 1504210678
    • Google Cloud Platform - Big Data - 105
      • GDELT & BigQuery: Understand the world - 1502200379
    • Uncategorized - 999
      • Introducing Google Cloud Platform Resources - 1501190370
  • Google 应用开发
    • Launchpad Online - 072
      • The Setup: Creating new apps using Google APIs - 1503190428
      • Listing your files in Google Drive - 1503190429
      • Customizing Google Analytics for your startup - 1503290473
      • The Launchpad Online series - 1503190427
      • Getting started with Google Analytics - 1503290472
      • Accessing Google Maps from a spreadsheet?!? - 1502220381
      • Change the world in 10 lines of code - 1503080398
    • Google Play Services - 054
      • Google Play services 6.1 - 1503290481
      • Google Play Services 7.0 - 1503200437
      • Google Play Services 6.5 - 1501080015
    • 谷歌地图 iOS SDK - 053
      • Maps Live: New Features in the Google Maps Mobile APIs for Android and iOS - 1504300777
    • Google 移动搜索开发 - 055
      • Is your app in the Google index? - 1504120598
      • Get more engaged users with Google Search for Developers - 1503070397
    • DevBytes: Google Cast - 020
      • Google Cast SDK for Android - 1504180666
      • Media Router Framework - Part 1 - Media Router API - 1504180667
      • Overview for Google Cast Receivers - 1504180664
      • Google Cast SDK for iOS - 1504180663
    • Getting Started with the Google Maps SDK for iOS - 035
      • Getting started with the Google Maps SDK for iOS, Part 1 - 1504270757
    • IO Bytes 2014 - Wearables - 070
      • Voice Driven GDK Glassware - 1505280836
    • Route 85 - 078
      • Introducing Route 85 - 1501120022
      • Quick Tip: Don't Default that Switch! - 1501190371
      • OpenInChrome on iOS, Part 1 - 1501120023
      • OpenInChrome on iOS, Part 2 - 1501120024
      • OpenInChrome on iOS, Part 3 - 1501120025
      • OpenInChrome on iOS, Part 4 - 1501120026
    • DevBytes 2014 - 019
      • Web Components - Template - 1505040789
      • Wearable DataLayer API - 1505050792
      • Using srcset for responsive images - 1505050790
      • The picture element for art direction - 1505050791
    • Uncategorized - 999
      • Sun Surveyor brings augmented reality to photographers using Google Maps APIs - 1504200668
      • Snappy travels with the Roads API - 1503060392
      • Easy Maps Apps in Java and Python - 1501140030
  • Google 广告平台
  • Polymer
    • Polycasts - 076
      • The Awesome Power of Auto-Binding Templates -- Polycasts #08 - 1502220382
      • Content Switcheroo with Core-Pages -- Polycasts #09 - 1502200380
      • Core Iconset -- Polycasts #02 - 1505040788
  • Web 平台
    • HTTP 203 - 062
      • Gotchas - 1501140368
      • Font Rendering - 1501080016
    • Web Components - 081
      • DevBytes: Web Components - Overview - 1504250709
  • 宣传视频
    • Uncategorized - 999
      • Google Developers - 1501150369
      • I/O Extended 2014 - Join me - 1502220383
  • Google 各类开发者会议
    • 2014 Chrome 开发者高峰会议 - 009
      • Keynote - Chrome Dev Summit 2014 (Darin Fisher) - 1503120407
      • TLS All the Things! - Security with Performance(Chris Palmer) - 1503140412
      • Let’s build some apps with Polymer!(Rob Dodson) - 1503150415
      • Day One Closing Remarks(Sundar Pichai) - 1503150417
      • Chrome Leadership panel - 1503160422
      • Fundamentals of Mobile Web Development(Matt Gaunt) - 1503150416
    • 2015 游戏开发者大会中 - 039
      • FlatBuffers - 1504150640
      • Games for Google Cast - 1504150637
      • Top 10 Things Android Game Developers Should Know v 3.0 - 1504150643
      • Automate Publishing for Google Play APIs - 1504150639
      • 3 Game Design Mistakes You're Making - 1504150636
      • Android TV - 1504150638
      • How to Go Viral Without Really Trying - 1504150641
    • Devoxx 2014 Interviews - 024
      • What's new in Android 5.0 Lollipop - 1504260740
      • Android Tools - 1504260743
      • BigQuery and user-defined functions - 1504260744
    • IO Bytes 2014 - 065
      • Dart in Google Cloud - 1505070810
      • Big genomic data on Google Cloud Platform - 1505070811
      • Easy International Checkout with Chrome - 1505070802
      • Google developer tools and APIs for iOS - 1503190436
      • Whet your appetite with IO Bytes - 1501080021
    • PlayTime@Shanghai - 095
      • 主题演讲 Chris Yerga - 1504060549
      • 如何成功地开发你的应用 Ellie Powers - 1504060550
      • 在Google上营利 Brahim Elbouchikhi - 1504060551
      • Playtime Shanghai event sizzle reel - 1504070552
    • Project Google I/O 2015 - 098
      • Project Tango Mobile 3D tracking and perception - 1506120857
      • Democratizing Education - 1506120868
      • Improve your Android app’s accessibility - 1506120864
      • Google Cloud Messaging 3.0 - 1506120844
      • Developers connecting the world through Google Play - 1506120862
  • 开源开放技术
    • Compressor Head - 013
      • The Trailer, Season 2 - 1503060385
      • Behind the Scenes - 1503210441
      • Arithmetic Compression (Ep 5, Compressor Head) Google - 1503070394
      • Introducing Compressor Head - 1502120372
      • Episode 1 (Variable Length Codes) - 1502120373
      • Episode 2 (The LZ77 Compression Family) - 1502120374
      • Episode 3 (Markov Chain Compression) - 1502120375
Powered by GitBook
On this page
  • 译者信息
  • 解说词中文版:

Was this helpful?

  1. Polymer
  2. Polycasts - 076

Core Iconset -- Polycasts #02 - 1505040788

PreviousContent Switcheroo with Core-Pages -- Polycasts #09 - 1502200380NextWeb 平台

Last updated 5 years ago

Was this helpful?

视频发布时间

2014年10月6日

视频介绍

Creating your own icon set in Polymer is a breeze! In this video we'll look at how to combine different iconsets with the core-icon elements, and I'll show you how to create your own custom iconsets using SVG images.

视频推介语

暂无,待补充。

译者信息

翻译

润稿

终审

原始链接

中文字幕

翻译流水号

加入字幕组

——

——

——

1505040788

解说词中文版:

各位观众老爷们

大家好最近怎么样

我是罗伯多德森 在这期节目中

我将向你们介绍如何通过

加载额外的图标集来加强你的core-icon

以及使用svg创建自定义图标集

让我们来看看具体操作

我们需要从头开始

首先 建立自己的图标

这个视频将展示出我们要讲的所有概念和步骤

所以我们将会使用

core-iconset-svg组件

要注意的是 还有一个

主要生成栅格图标集的core-iconset组件

我们将重点放在SVG上面

因为它看起来更美观

并且在不同的屏幕上放大效果更好

这是我们要展示的第一个图标

我们将命名为fancy-circles

实际上这个不是幻想

这只是几个重叠的圆圈

但这使我们的图标集有了个良好的开端

首先我们要做的就是

引入core-iconset-svg

组件的定义

在这里有bowercomponents/core-iconset-svg

实际上将在这里加载这个标记

所以我就能够在应用程序里使用它了

接下来做的就是如何设置这个东西了

我要给它一个ID

当然这个ID是非常重要的

因为它就是我的图标集的名字

当用户要从中获取一些东西时

这就是用户以后查到我的图标集的依据

我们称他为自定义图标

如果你想自定义图标大小也可以

看这里 我设置把它的数值设置为50

就是说它的像素为50

我们设置的所有的图标在默认状态下像素是24

但是设置的这个图标大小是起了推动了作用

我重申一次 它是具有可选性的

如果你觉得没有必要 你可以不必设置

现在我要打开我的图标设置标签

将SVG标记搁在这儿

这个实际上是SVG代码将为我们生成那些圆圈

需要注意的是 我们还需要设置一个ID

这个实际上就是我们图标的名称

因此用户需要使用这个图标时

他们就会用到这个图标集

然后才能用这个图标

举个例子

这有一个core-icon组件

图标属性是空的

我们要用到图标集 这都是自定义图标

我们要用到fancy-circles图标时

用冒号将图标和图标集分开

现在我们屏幕上出现的就是图标

但是它是不是有点和我们预想的不同

这都是一种颜色 确实有些单调

但是这个实际上就是SVG炫酷的一方面

在这个嵌套之下 所有的都标记了

我们可以查看并锁定不同的SVG组件分别设计

我来告诉你们它是怎样运作的

这是一个图标 它左边是一个设计组件

接下来我要做的就是

针对我要着色的那些图标编写选择器

我先从第一个圆圈开始编写

按照这个路径 一直到最后的循环

若有需要 我可以设计各个部分

还记得上次的视频不 我们在那个视频里

用颜色功能给图标着上同样的色彩

你还可以使用那种方法

但如果你想要更体现你的操控力

你就可以使用SVG 他会让你更加满意

现在你们已经做好开头步骤了

做好了第一个图标集 还了解了所有运行过程

接下来要做的就是选取另一个人的图标集

把它加载到我的项目中

要是你们还记得上次的视频

那么现在我就要展示这个链接

这链接涉及到核心文档默认的图标集

滚动页面 你会发现这还有很多的其它内容

这还有些别的图标集

像视频 地图 硬件之类的视频音频图标

最炫的是如果你想从图标集中加载一个图标

它的工作原理与我们刚才展示的自定义图标完全相同

举个例子

如果我想在音频视频图标集里加载图标

就要引入图标的定义

所以我将访问core-icons av-icons

然后才在coreicon里使用音频视频图标

我想要一个简易图标 有冒号 箭头

这种方法就可以做成我想要的图标

特别简单吧

现在你们了解了该怎样创建自己的图标集了

你知道如何获得别人已经为你设置好了的图标集了

并把它妥妥地下载到你的程序里

现在我们切换到代码编辑器

我们就得到了出现在屏幕的这些内容

我们有设置好了而且可以运行的程序

我们首先要做的就是创建一个全新的文件

命名为custom-icons.html

实际上我们要做的就是给我们所写的图标下定义

既然我们已经创建好了文件

我们就只需要引入

thecore-iconset-svg的定义

所以我假设它在bower_components目录内

并且写出core-iconset-svg

而且既然已经准备就绪

我就可以只用图标集标记我的页面了

我们要设置并使用它

就要给它确定个ID

这样我们的图标就有名字啦

我们管它叫做自定义图标

我们还要规定图标大小属性

将它设为50

记住啦 这个图标大小属性是可选的

你不需要管它

我这样做纯属为了搞笑 让你们能够看到

我继续将它粘贴到iconSVG代码中

你看我已经设置好了ID

我的图标名叫fancy-circles

而且这时候我的图标集也基本完成了

这是其中一个图标集 里面只有一个图标

但是这很不错

因为我们将看到我们可以拿得出手的一些东西

所以打开我的索引文档

我就必须做几件事情

我要确认输入平台

我将输入bowercomponents/platform/platform.js

我准备引入core-icon的定义

这样我可以显示我的图标

我要引入刚创建的自定义图标文件的定义

现在我的图标集已经可以使用了

然后在我的标签里 我将建一个core-icon

我要设置自定义图标的属性

然后在那里打个冒号

然后就输入fancy-circles

如果我保存这个 打开浏览器 刷新页面

在上面 你将看到一个小图标

我会将它放大一下 好让你们更容易看见

这就是我们刚弄好的fancy-circles

如果你撤销 我们得进去 再加一些样式

它就看起来像我们所预期的了

所以我要加一个style元素

并再次粘贴到CSS里面

省得你们在这看我慢慢打字

现在差不多都好了 我要清除一点格式

保存 刷新页面

现在如我们所料的图标就出现了

真正酷的是可以在里面

把这些填充色改成我们想要的颜色

我们可以设置成红色 绿色 蓝色

这并不是要最好看的图标

但它一定程度上可以证明

我们确实能够访问或锁定图标的不同部分的话

我们还可以改变他的外观

我已经向你展示怎样载入你的自定义图标

我们倒回去稍微理一下

现在我们从附加项里选一个来加载一个图标

我要在这个imports区

将我AV图标的定义包含进去

我假设它在bower_components里

我将请求core-icons/av-icons.html

如果你真的打开了浏览器组件文件夹

而且打开了图标集

你就能够看到在那的所有的不同图标

AV图标 通信 装置 硬件

许多很酷的东西都在这里供你把玩

非常简单 只是需要引入定义而已

在我的标签下面 我要添加另外的core-icon

这次

我要把图标属性设成av:play-arrow

它会在AVset那里显示一个播放箭头

刷新页面 我会在上面看到一个黑色图标

如果我想设置它 给它上色

我或许能给它一个类名 或类似的东西

我叫这个类为icon-play

然后在我的CSS里 我的图标将使用这个类

如果说icon-play应该设置

成亮绿色或者是其他的

只是告诉你 你可以点进去

接着把整个图标设置成同一颜色

酷 太赞了

现在有个东西 真的很整齐

我们以往从未谈及过的就是指出

在核心元素中有一堆不同的元素集支持图标的属性

我要引入core-icon按钮的定义

这是我从未见过的事情 但它确实方便

我植入一个core-icon按钮

接着我将使用它的图标属性

载入一个AV图标

我需要一个core-icon按钮

我把它的图标设成av:play-arrow

返回到浏览器

刷新网页 如果我稍微调小浏览器窗口的尺寸

现在我们弄懂了这个很酷的播放键

超简单

现在你是正式的core-icon大师

你知道怎么创建图标集

怎么加载别人给你的图标集

你知道怎么利用CSS设置格式

这意味着你可以出师啦

去创作真正的厉害的东西

感谢收看

Youtube
Youtube
加入 GDG 字幕组
video_screenshot