有没有办法在应用程序中设置 NoActionBar 主题
Is there any way to set NoActionBar theme in Application
我正在使用 Visual Studio 和 Xamarin 平台制作 android 应用程序。
当我阅读文档时,我发现了一些东西。
.
正如我们所见,我们只能创建三个主题。所以我的问题是我们可以将 NoActionBar
主题设置为应用程序,就像我们在 Android Studio 中设置的那样。
感谢任何帮助。
您可以在您的应用中使用没有操作栏的主题。例如,您可以在 Properties\AssemblyInfo.cs
:
中指定应用程序属性
[assembly: Application(Icon = "@drawable/Icon" Theme = "@android:Theme.Holo.Light.NoActionBar")]
或设置在AndroidManifaset.xml
<application android:theme="@android:style/Theme.Holo.Light.NoActionBar" />
如果这不起作用,请创建一个没有操作栏的样式,就像这里提到的那样:
没有带有样式的操作栏
<style name="NoActionBar" parent="@android:style/Theme.Holo.Light.NoActionBar">
</style>
我正在使用 Visual Studio 和 Xamarin 平台制作 android 应用程序。 当我阅读文档时,我发现了一些东西。
正如我们所见,我们只能创建三个主题。所以我的问题是我们可以将 NoActionBar
主题设置为应用程序,就像我们在 Android Studio 中设置的那样。
感谢任何帮助。
您可以在您的应用中使用没有操作栏的主题。例如,您可以在 Properties\AssemblyInfo.cs
:
[assembly: Application(Icon = "@drawable/Icon" Theme = "@android:Theme.Holo.Light.NoActionBar")]
或设置在AndroidManifaset.xml
<application android:theme="@android:style/Theme.Holo.Light.NoActionBar" />
如果这不起作用,请创建一个没有操作栏的样式,就像这里提到的那样:
没有带有样式的操作栏
<style name="NoActionBar" parent="@android:style/Theme.Holo.Light.NoActionBar">
</style>