Profile

Cover photo
方振宇
4 followers|12,307 views
AboutPostsPhotosVideos

Stream

方振宇

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
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
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!
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
1
Add a comment...
In his circles
112 people
Have him in circles
4 people
laken li's profile photo
Yi Liu's profile photo

方振宇

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!
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
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!
1
Add a comment...

方振宇

Shared publicly  - 
 
Google plus更新成slidingdrawer了,slidemenu靠边站
 ·  Translate
1
Add a comment...
People
In his circles
112 people
Have him in circles
4 people
laken li's profile photo
Yi Liu's profile photo
Links
YouTube
Basic Information
Gender
Male