Question:
To open a normal activity in the form of a dialog, I use the style
<style name="myDialogNoTitleBar" parent="@style/Theme.AppCompat.Light.Dialog.Alert">
<item name="windowNoTitle">true</item>
</style>
and just add in the manifest to the desired activity
android:theme="@style/myDialogNoTitleBar"
but for authorization via vk sdk the function is used
VKSdk.login(this, scope);
which itself opens the necessary activity and does everything that is necessary.
Answer:
In the manifest, when connecting VKSDK, you need to register the activity, where, in particular, the style is indicated
In the source, it looks like this:
<style name="VK.Transparent" parent="@style/Theme.AppCompat.Light.Dialog.Alert">
<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>
</style>
Accordingly, you can try to define your own style with the same attributes, but inherit it from the dialog style and assign this to the contact activity in the manifest
In styles:
<style name="MY.VK.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>
</style>
In the manifest:
<activity android:name="com.vk.sdk.VKServiceActivity" android:label="ServiceActivity" android:theme="@style/MY.VK.Transparent" />