Profile cover photo
Profile photo
方振宇
9 followers
9 followers
About
振宇's interests
View all
振宇's posts

Post has attachment
使用之后流氓软件老实了很多。自启动,相关唤醒,内存清理都很实用。

Post has shared content
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

Post has shared content
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

Post has shared content
非常有用的优化方法
Great primer on UI performance tuning from the developers at Venmo. Covers basics of measurement, hierarchyviewer, overdraw visualization, traceview, garbage collection, mat, etc. #AndroidDev

Post has shared content
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!

Post has shared content
cool!我去试试。
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
Animated Photo

Post has shared content
怎么有点像smartisan os的拨号界面,至少配色很像
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
PhotoPhotoPhotoAnimated Photo
2 Photos - View album

Post has shared content
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!
PhotoPhotoPhoto
Programmatic Instantiation of Views with Styles
3 Photos - View album

Post has shared content
谢谢你让Android UI性能越来越好
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!
Photo

Post has shared content
好文章,学习了,我也基于slidingpanelayout改过自定义view,viewdraghelper确实是帮助处理touchevent的利器
Wait while more posts are being loaded