Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Master page displaying backgroundImage in iOS but not in Android Project ?

$
0
0

`<?xml version="1.0" encoding="UTF-8"?>

<MasterDetailPage.Master >

    <ContentPage BackgroundImage="overlay.png" Title="Hello" Icon="menu.png">
        <AbsoluteLayout>
            <StackLayout AbsoluteLayout.LayoutBounds="0.5,0.1,0.7,0.2" AbsoluteLayout.LayoutFlags="All">
                <Label Text="Nome do Medico" FontAttributes= "Bold" FontSize="20" TextColor="White"/>
                <Label Text="CRM 1234567890" FontSize= "15" TextColor="White"/>
            </StackLayout>
            <BoxView AbsoluteLayout.LayoutBounds="0,0.2,1,0.001" AbsoluteLayout.LayoutFlags="All" Color= "White"/>

             <StackLayout AbsoluteLayout.LayoutBounds="0.5,0.4,0.7,0.3" AbsoluteLayout.LayoutFlags="All">
                <Label Text="PERFIL" FontAttributes= "Bold" FontSize="20" TextColor="White"/>
                <Label Text="MEUS HORARIOS" FontSize= "20" TextColor="White"/>
            </StackLayout>
      <Button Image="power.png" AbsoluteLayout.LayoutBounds= "0.2,0.9,0.15,0.08" AbsoluteLayout.LayoutFlags="All" BackgroundColor= "Transparent" BorderRadius="20" />

        </AbsoluteLayout> 


    </ContentPage>
</MasterDetailPage.Master>

    <MasterDetailPage.Detail >
   <NavigationPage>
        <x:Arguments>
           <ui:DetailSixthScreen />
        </x:Arguments>
   </NavigationPage>
</MasterDetailPage.Detail>


`

Hi,
I have written a master detail page in xamarin forms. Master Page appears from left side in iOS and works good.I have set a background image in master content page and that is rendered in iOS But , this image is not rendered in Android although I have added image in resources of android project. I tried adding different images in resources (drawable_hdpi) but a blank white screen in displayed instead of backgroundimage.
Help Please


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>