摘要: 14年Android开发者大会提出了Android5.0 系统以及 材料设置 Material Design。在 材料设计中推出了大量的UI效果,其中某些功能 已添加进 兼容包,所以可以在低版本中来实现一些材料设计效果。今天主要介绍的就是 ActionBar的替代品 Toolbar。Toolbar ... 阅读全文
posted @ 2015-03-03 16:13 bvin 阅读(3468) 评论(1) 推荐(0) 编辑
摘要: Creating a Navigation DrawerTHIS LESSON TEACHES YOU TO:Create a Drawer LayoutInitialize the Drawer ListHandle Navigation Click EventsListen for Open a... 阅读全文
posted @ 2015-03-03 15:25 bvin 阅读(653) 评论(0) 推荐(0) 编辑
摘要: Navigation DrawerCreating a Navigation DrawerThe navigation drawer is a panel that transitions in from the left edge of the screen and displays the ap... 阅读全文
posted @ 2015-03-03 14:35 bvin 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 本篇是根據+Roman Nurik在 2014/11/24 發佈的一篇G+而來。看到他發文後,起了好奇心,就根據他提出的方法嘗試著實作,並將之排列呈現,直接從視覺上做個比較。他在 G+ 的發文中提出一個做法,改良原本看起來有點單調的漸層,改變線性到三次項的梯度呈現,使之看起來更加順眼,而將之定名為「... 阅读全文
posted @ 2015-03-03 10:54 bvin 阅读(847) 评论(0) 推荐(0) 编辑
摘要: 在 Material Design 釋出後,Google 也開始陸續更新了Google app 的介面,讓大家有個範例可以看。而過去大力推動的actionbar 自然而然也成了眾開發者觀注的部份;其中的 up button的設定在前一篇所介紹的Toolbar也已看到。這邊還未提到的一個部份是 mat... 阅读全文
posted @ 2015-03-03 10:52 bvin 阅读(792) 评论(0) 推荐(0) 编辑
摘要: 今年(2014) 的 Google I/O 發表令多數人為之一亮的 Material Design,而 Google 也從「Google I/O 2014」 開始,大家也陸陸續續地看到其更新的Android APP 皆套用了這個設計介面。當然,這個設計介面著實讓大家感到驚艷外,更讓 Android ... 阅读全文
posted @ 2015-03-03 10:50 bvin 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Adding the Action BarGET STARTEDDEPENDENCIES AND PREREQUISITESAndroid 2.1 or higherYOU SHOULD ALSO READAction BarImplementing Effective NavigationDESI... 阅读全文
posted @ 2015-03-03 10:38 bvin 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Action BarIN THIS DOCUMENTAdding the Action BarRemoving the action barUsing a logo instead of an iconAdding Action ItemsHandling clicks on action item... 阅读全文
posted @ 2015-03-03 10:28 bvin 阅读(600) 评论(0) 推荐(0) 编辑
摘要: Action BarTheaction baris a dedicated piece of real estate at the top of each screen that is generally persistent throughout the app.It provides sever... 阅读全文
posted @ 2015-03-03 10:15 bvin 阅读(535) 评论(0) 推荐(0) 编辑