I have a transparent theme Activity but this theme will make the Activity 100% transparent.
I need a code such that the Activity will be 50% Transparent. This is my code:
<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>
You could apply a transparent theme to the required activity. Create a new style in
/res/values/style.xmlThe value of transparent is
Now in AndroidManifest.xml declare the theme of the activity to the one you just created.