AD

android activity to achieve a translucent effect Translucent

Android is transparent, providing a built-in Theme: android: style / Theme.Translucent, just need to set the current activity of the theme for the Theme can be completely transparent effect.

If you want to translucent, you can add a successor to the Theme's style, to achieve the following:

<style name="Theme.Translucent" parent="android:style/Theme.Translucent"> 
    <item name="android:windowBackground">@drawable/translucent_background</item> 
    <item name="android:colorForeground">#fff</item> 
</style>

<drawable name="translucent_background">#e0000000</drawable>


In addition API Demo Another example is provided, do not inherit the built-in Theme, you can create a completely new own style, to achieve transparency, and can add some other effects, such as fuzzy and so on.
标签: lt, demo, transparency, fff, style name, style theme, translucent effect
分类: Mobile
时间: 2010-11-04

相关文章

  1. UI Learning Activity android development transparent, translucent effect of setting transparent

    Try to do this activity translucent effect, only to find out want to do more complicated! A few simple can be ...
  2. div layer mask to achieve IE Firefox page translucent effect of pop

    div layer mask to achieve IE Firefox page translucent effect of pop
  3. 35 pages of foreign fine translucent effect of Appreciation

    Recent trends in web design, semi-transparent elements in the application of more and more. Sometimes, just fo ...
  4. [Zhuantie] Android Activity beautiful custom jump effect

    Jump to customize Android Activity beautiful effect Jump when the two Activity, custom mouse gestures: Intent ...
  5. Android Activity of the jump and transfer value

    Activity jumps and mass values, mainly through the Intent class to connect multiple Activity, and transfer dat ...
  6. Android Activity Introduction to Life Cycle

    Android activity of the life cycle activity class in the android.app package, inheritance system is as follows ...
  7. android years to achieve ftp upload feature, use the apache commons ftp

    android years to achieve ftp upload feature, use the apache commons ftp
  8. hql exists limit property, but did not play a role, the following methods can achieve the same effect

    hql exists limit property, but did not play a role, the following methods can achieve the same effect. String ...
  9. Page images to achieve Lazyload lazy effect

    Source: http://www.cnblogs.com/cloudgamer/ Lazyload be achieved through the lazy load on demand, to save resou ...
  10. Android Activity type application skills sharing

    Android Activity class in the Android operating system, applications are often important. So how can the right ...
  11. JS achieve image rotation effect

    2009-01-03 Article Category: Web front-end keyword: Image rotation, Carousel Dao use the current project the e ...
  12. Fourth Lecture - Android Activity of the preliminary

    Fourth Lecture - Android Activity of the initial
  13. Fourth Lecture - Android Activity of the initial

    Fourth Lecture - Android Activity of the initial
  14. create an android how to achieve rotation textview? please help out

    create an android how to achieve rotation textview? Please help out
  15. Android android activity set in full screen and get the screen width and height

    android activity set in full screen requestWindowFeature (Window.FEATURE_NO_TITLE); Android get screen width a ...
  16. Used in the Android Activity, Service, Broadcast, BroadcastReceiver

    Describes the use of the Android Activity, Service, Broadcast, BroadcastReceiver Activities (Activity) - for t ...
  17. Android: Activity. Process. BoradcastReceiver life cycle

    Android Activity and processes in the life cycle is a very important issue. Android have taken the process lik ...
  18. Android Activity之间传递图片(Bitmap)的方法

    这篇文章介绍了Android Activity之间传递图片(Bitmap)的方法,有需要的朋友可以参考一下 在Android开发中:Activity之间传递参数是常见的事:如果我们要在Activity之间传递图片: 1. ...
  19. Android Activity切换(跳转)时出现黑屏的解决方法 分享

    Android Activity切换(跳转)时出现黑屏的解决方法 分享,需要的朋友可以参考一下 在两个Activity跳转时,由于第二个Activity在启动时加载了较多数据,就会在启动之前出现一个短暂的黑屏时间,解决这 ...