PhotoStream

来源:互联网 发布:apache 运行php 编辑:程序博客网 时间:2024/05/17 08:03

 

翻译:俺负责翻译(http://news.HiGPhone.com),转载请注明。

 

谷歌刚刚在Android官方开发博客上公布了一个令人兴奋的应用程序:PhotoStream
PhotoStream是一个普通的照片浏览器,他是一个为Flick设计的开源应用程序,你可以使用你的Flickr账号来浏览你曾经上传的照片,当然,如果你没有用过Flickr,GOOGLE也为你准备了一个默认的Flick的账号让你来体验这项服务。
 
我们可以从以下的截图中看到PhotoStream的浏览效果还是很炫的,并且你可以根据你的使用习惯来任意建立快捷方式,以便可以随时浏览你的Flickr。


 

如果你是以为Android开发者,那么恭喜你,Photostream的开放代码可以让你编写的程序里支持浏览Flickr,你完全可以重用这段代码。你可以通过修改[url=http://code.google.com/p/aPPS-for-android/source/browse/trunk/Photostream/src/com/google/android/photostream/Flickr.java]Flickr.java file[/url] 来代替已有的API,这个应用的源代码包括很多被叫做 UserTask.java的类,这些类将对你设计交互左右有很大帮助。

下面是Photostream服务的一些特性和API:

  • Activity aliases
  • Adding custom shortcuts to Home
  • Adding a new wallpaper chooser to the system
  • Custom layouts
  • Custom XML attributes
  • Use of themes
  • Use of styles
  • Use of text colors
  • Use of <include>
  • Use of bitmap and layer drawables from XML
  • Use of HttpClient
  • Proper interaction between background threads and the UI thread
  • Efficient display rotation (using the new onRetainNonConfigurationInstance() API)
  • Animations and layout animations
  • Cropping an image
  • Image manipulation