Skip to main content

Home/ Android Dev/ Group items tagged Performance

Rss Feed Group items tagged

Vincent Tsao

Window Backgrounds & UI Speed | Android Developers - 0 views

  • Removing the window's background can be achieved very easily by using a custom theme. To do so, first create a file called res/values/theme.xml containing the following:
  • <resources>
       
    <style name="Theme.NoBackground" parent="android:Theme">
           
    <item name="android:windowBackground">@null</item>
       
    </style>
    </resources>
  • You then need to apply the theme to your activity by adding the attribute android:theme="@style/Theme.NoBackground" to your <activity /> or <application /> tag. This trick comes in very handy for any app that uses a MapView, a WebView or any other full screen opaque view.
Vincent Tsao

Google I/O - Turbo-charge your UI: How to Make your Android UI Fast and Efficient - 1 views

    • Vincent Tsao
       
      youtube视频在highlight中不能展示了,:(
      手动添加先

1 - 6 of 6
Showing 20 items per page