2017-07-25 25 views
0

我有这个无商标的书面该公司的唯一名称的项目,如下插入标志在我的项目xamarin形式的ios的顶部,Android的

enter image description here

现在我想把图像在我的项目上,公司LOGO留在完美的设计师,你可以在图片中看到下面

enter image description here

我使用xamarin形式和开发Android应用和iOS,怎么能我做 这在我的项目?有没有人有任何例子?

编辑

<?xml version="1.0" encoding="UTF-8"?> 
<ContentPage 
    xmlns="http://xamarin.com/schemas/2014/forms" 
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
    x:Class="projeto.Views.home" 
    x:Name="Name" 
    Title="Name" Icon=""> 
+0

我建议遵循一些关于使用Xamarin.Forms创建基本应用程序的示例,因为您可能会错过对UI组件的一些基本理解 - [Xamarin.Forms入门](https://developer.xamarin.com/guides/xamarin -forms/getting-started /) 我们可以粘贴一堆代码,但你不明白为什么,还有几种方法来做这些事情。 – ethane

+0

我已经准备好了我的项目,我只是没有找到正确的方法,你可以把命令放在那里,我可以取消检查 –

+0

那么,你有什么尝试?给我们一些你的项目的背景。您是使用xaml还是代码隐藏来构建您的UI?您是使用Xamarin.Forms还是Xamarin.Android和Xamarin.iOS项目? – ethane

回答

0

这里是你的页面可能看起来像一个粗略的布局:

<ContentPage 
xmlns="http://xamarin.com/schemas/2014/forms" 
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
x:Class="projeto.Views.home" 
x:Name="Name" 
Title="Name" Icon=""> 

    <!--Content page may only have one child element--> 
    <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Orientation="Vertical"> 
     <Image Source="CompanyLogo.png" AspectRatio="AspectFit"/> 
     <StackLayout> 
      <!--Other content---> 
     </StackLayout> 
    </StackLayout> 
</ContentPage> 

注意,这个非常基本的方法只是其中的一个。您需要熟悉xaml以及您可以用来实现特定功能的不同组件。

+0

好吧,那也是对的。但不是我认为它的方式。我想让他卡住,所以你告诉我,如果我滚下标志会褪色 –

相关问题