I downloaded code of github repo: https://github.com/SimpleMobileTools/Simple-Calendar which is written in kotlin
android, In that project my requirement is to make background of one of my activity transparent, but still I failed to achieve that.
Asked
Active
Viewed 1,116 times
-2

kirtan403
- 7,293
- 6
- 54
- 97

Shehryar Afridi
- 1
- 1
1 Answers
0
This has nothing to do with Kotlin
. Just add this line to your theme:
<item name="android:windowBackground">@android:color/transparent</item>
For more details and other properties of your need, refer to this answer.

kirtan403
- 7,293
- 6
- 54
- 97
-
I tried but its not working for me , showing white background each time . then i created java class in same project for testing purpose tranparent layout of java class is working properly ... its only not working in kt classes – Shehryar Afridi Nov 11 '17 at 18:54