-2

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.

kirtan403
  • 7,293
  • 6
  • 54
  • 97

1 Answers1

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