0

I want to like following, when application start open one activity that display transparent activity like following image,

enter image description here

Backgrounds is transparent ( like to start camera in backgrounds ) and other application and other menu are display at bottom as disply in image. when application close, it close. but when choose from livewallpapaer only that time it set as wallpaper ( that i done ) like transparent screen.

please help me to how to do like this ?,

Nirav Mehta
  • 1,715
  • 4
  • 23
  • 42

1 Answers1

0

Define theme in style file

 <?xml version="1.0" encoding="utf-8"?>
    <resources>
      <style name="Theme.Transparent" parent="android:Theme">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">false</item>
      </style>
    </resources>

and give this theme to your activity... see this..

Community
  • 1
  • 1
Chirag Jain
  • 1,612
  • 13
  • 20