Profile

Cover photo
方振宇
9 followers|47,473 views
AboutPostsPhotosVideos

Stream

方振宇

Shared publicly  - 
 
使用之后流氓软件老实了很多。自启动,相关唤醒,内存清理都很实用。
 ·  Translate
LBE加速大师是LBE推出的全新产品,更轻更快更省电。可帮手机提速60%,最高可延长一倍的续航时长,安装包小至4.2MB,内存占用小,精选的模块,更优...
1
laken li's profile photo
 
我不翻墙都不知道你都装到这里来了
 ·  Translate
Add a comment...

方振宇

Shared publicly  - 
 
 
Gaining Performance by using Custom ViewGroups
Sometimes, things like RelativeLayout and LinearLayout can cause double-layout/measure overhead that is just wasting space.  This is a great article on how to get rid of that overhead (but still get the right layouts) using custom ViewGroups.

#perfmatters
2 comments on original post
1
Add a comment...

方振宇

Shared publicly  - 
 
amazing!
 
Path tracing and other visual effects

Here is a demo I wrote to explain how to implement several interesting visual effects in your Android application. All the animations in this demo are implemented programmatically and do not rely on images or videos.

The source code and binary can be found with detailed explanations on my blog:

http://www.curious-creature.org/2013/12/21/android-recipe-4-path-tracing/

Enjoy!
9 comments on original post
1
Add a comment...

方振宇

Shared publicly  - 
 
怎么有点像smartisan os的拨号界面,至少配色很像
 ·  Translate
 
Google+ Hangouts for iOS: phone calls, animated GIFs, and more

Today we're updating Google+ Hangouts for iPhone, iPad and iPod Touch. The new app includes the recent Android improvements (http://goo.gl/gd3By1), as well as some new goodies for iOS:

- You can now make calls to phones from the iOS app, and calls to the US and Canada are free! You can dial internationally too (with super low rates), but you'll first need some calling credit: google.com/voice/m/credit.

- If you're a Google Voice user, you can make and receive calls from any of your iOS devices with today's update. Outgoing calls will come from your Google Voice number, and incoming Voice calls can be answered from Google+ Hangouts.

- Incoming messages will no longer stop your music. Instead of interrupting your groove, Google+ Hangouts will now temporarily duck your music, then crank the volume back up.

- Aaand… animated GIFs will now play in-line.

Today's release contains lots of features based on your feedback (seeing who's reachable right now, early integrations with Google Voice), but we're always working to make the app better. So give the new version a go (http://goo.gl/FDOfq), and let us know your thoughts!

#googleplusupdate
64 comments on original post
1
Add a comment...

方振宇

Shared publicly  - 
 
谢谢你让Android UI性能越来越好
 ·  Translate
 
Moving on

Today is my last day on the Android team at Google (I will remain at Google.)

After more than 6 years I have decided to try something new. I had the incredible luck to join Android before it was publicly announced and I would have never imagined to be part of such an amazing project. We started from scratch and Android is now everywhere! I owe a lot to this team of incredibly talented people and I will miss them dearly.

If you are an Android user or developer: thank you!
383 comments on original post
1
Add a comment...

方振宇

Shared publicly  - 
 
Google plus更新成slidingdrawer了,slidemenu靠边站
 ·  Translate
1
Add a comment...
In his circles
140 people
Have him in circles
9 people
Genymotion's profile photo
Deng Joye's profile photo
Lucas Luo's profile photo
Yi Liu (liuyix)'s profile photo
laken li's profile photo
麦小麦's profile photo
李龙's profile photo
Ivan Huang's profile photo

方振宇

Shared publicly  - 
 
 
Gaining Performance by using Custom ViewGroups
Sometimes, things like RelativeLayout and LinearLayout can cause double-layout/measure overhead that is just wasting space.  This is a great article on how to get rid of that overhead (but still get the right layouts) using custom ViewGroups.

#perfmatters
2 comments on original post
1
Add a comment...

方振宇

Shared publicly  - 
 
非常有用的优化方法
 ·  Translate
 
Great primer on UI performance tuning from the developers at Venmo. Covers basics of measurement, hierarchyviewer, overdraw visualization, traceview, garbage collection, mat, etc. #AndroidDev
Earlier this summer, we released a major update to our Android app. It shipped with a revamped UI, a new robust networking layer, and plenty of awesome. Our users loved the new experience and responded with a lot of positive feedback. It was a great release, but we were a little unhappy with how smooth the UI was. Scrolling on the feed seemed choppy, especially when scrolling quickly. So let’s talk about UI performance. While buil...
View original post
1
Add a comment...

方振宇

Shared publicly  - 
 
cool!我去试试。
 ·  Translate
 
Scalpel - A surgical debugging tool to uncover the layers under your app.

Combine hierarchy viewer, overdraw display, and a splash of gratuitous 3D for an on-device interactive model of your view tree.

https://github.com/JakeWharton/scalpel

I slapped this together in a few hours so it may be a bit rough (especially in the partial 3D conversion). I'd love to get some contributions in. Here's your (and my initial) inspiration: http://revealapp.com/.

#AndroidDev
42 comments on original post
1
Add a comment...

方振宇

Shared publicly  - 
 
学习了
 ·  Translate
 
Today's #AndroidDev #Protip from +Roman Nurik is about programmatic instantiation of Views with custom styles.

Most of you know that you can (and should) use styles when defining layout XML, like so:

<Button style="@style/MyButton">

But what if you are programmatically creating a Button instead of defining it in a layout? How can you apply a style then?

It's actually pretty simple:

1. Define a custom theme attribute such as myButtonStyle.
2. In your theme, set the value of the myButtonStyle attribute to the MyButton style resource.
3. Pass in R.attr.myButtonStyle as the third argument to the Button constructor (or any other view class).

Take a look at the attached sample code screenshots, or view the full gist below:

Sample codehttps://gist.github.com/romannurik/7026222

Happy coding!
15 comments on original post
1
Add a comment...

方振宇

Shared publicly  - 
 
好文章,学习了,我也基于slidingpanelayout改过自定义view,viewdraghelper确实是帮助处理touchevent的利器
 
You want to know what is behind a DrawerLayout?
BONUS: how to make the new Youtube while playing layout!

http://flavienlaurent.com/blog/2013/08/28/each-navigation-drawer-hides-a-viewdraghelper/

#AndroidDev
Each Navigation Drawer Hides a ViewDragHelper Aug 28th, 2013 Recently, at the Google I/O 2013, two new layouts have been introduced: …
1
Add a comment...
People
In his circles
140 people
Have him in circles
9 people
Genymotion's profile photo
Deng Joye's profile photo
Lucas Luo's profile photo
Yi Liu (liuyix)'s profile photo
laken li's profile photo
麦小麦's profile photo
李龙's profile photo
Ivan Huang's profile photo
Collections 振宇 is following
Basic Information
Gender
Male
Links
YouTube