我替换了所有图像到处(我的意思是在drawable文件夹和所有Windows资源文件夹和iOS资源文件夹中),但它仍然显示应用程序的默认Xamarin图标.我也试过这个代码,但它似乎也没有用.有人能告诉我解决方案吗?
[assembly: Application(Icon = "@drawable/icon")]
Run Code Online (Sandbox Code Playgroud) 我有没有机会在Xamarin.Forms中删除应用程序的标题栏?我正在开发一个Xamarin.Forms Portable项目.我尝试了很多解决方案,但都没有用,我甚至无法启动应用程序.
第一次尝试我尝试将其添加到我的AndroidManifest.xml,但没有用:
android:theme="@android:style/Theme.NoTitleBar"
Run Code Online (Sandbox Code Playgroud)
第二次尝试我尝试在Resources/values中创建一个styles.xml,它是:
<?xml version="1.0" encoding="utf-8" ?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="Theme.Default" parent="@android:style/Theme"></style>
<style name="Theme.NoTitle" parent="@android:style/Theme.NoTitleBar"></style>
<style name="Theme.FullScreen" parent="@android:style/Theme.NoTitleBar.Fullscreen"></style>
</resources>
Run Code Online (Sandbox Code Playgroud)
然后我把它添加到我的AndroidManifest.xml中(也没用)
android:theme="@style/Theme.NoTitle"
Run Code Online (Sandbox Code Playgroud)
第三次尝试我尝试将其添加到MainActivity.cs中的OnCreate方法(不起作用).
RequestWindowFeature(WindowFeatures.NoTitle);
Run Code Online (Sandbox Code Playgroud)
谁能帮我这个?