I am trying to use activity as a dialog, and I have done the following, but still it shows as an activity rather than dialog. I wonder what I am missing or doing wrong?
AndroidManifest.xml
<activity
android:name="AboutView"
android:theme="@style/Dialog">
</activity>
Themes.xml
<style name="Dialog" parent="@android:style/Theme.Dialog">
<item name="windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
AboutView.cs
[MvxFragment(typeof(MainViewModel), Resource.Id.MainViewContainer)]
[Activity(Label = "AboutView", Theme = "@style/Dialog")]
[Register("views.AboutView")]
public class AboutView : MvxFragment<AboutViewModel>
{
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
var ignored = base.OnCreateView(inflater, container, savedInstanceState);
var view = this.BindingInflate(Resource.Layout.AboutView, null);
return view;
}
}