<style name="Theme.AppCompat.Translucent" parent="Theme.AppCompat.NoActionBar"><item name="android:background">#33000000</item> <!-- Or any transparency or color you need --><item name="android:windowNoTitle">true</item><item name="android:windowBackground">@android:color/transparent</item><item name="android:colorBackgroundCacheHint">@null</item><item name="android:windowIsTranslucent">true</item><item name="android:windowAnimationStyle">@android:style/Animation</item></style>
@Overrideprotected void onCreate(Bundle savedInstanceState) {
String email = getIntent().getStringExtra(AppConstants.REGISTER_EMAIL_INTENT_KEY);if (email != null && !email.isEmpty()) {// We have the valid email ID, no need to take it from user,// prepare transparent activity just to perform bg tasks required for loginsetTheme(R.style.Theme_Transparent);super.onCreate(savedInstanceState);setContentView(R.layout.activity_login);
} elsesuper.onCreate(savedInstanceState);
setContentView(R.layout.activity_dummy);}