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

Footer, Header and Background

$
0
0

Hi!

I'm trying to create a default footer and header and also add a background image for my application. I have created three layouts; an Absolute Layout for my header, which contains an image of the header(a png file), a logo and two buttons. One Center Grid, which contains the main menu buttons and one Relative Layout for my footer. The footer contains the image i've used (a png file) and a lable for the secound logo.

I got lots of questions for this one:
1) So far i've used a child element and a point for position for the header
-How could i make it more dynamical?
-Is Absolute layout the correct way to make this element?
(It's done in code and not XAML)
2) The Center grid is made up by ImageButtons
-I don't know how to set the size of each side, so that i could make it square
-How could I set the text on a desired place with a desired font.
3) When I try to add the footer, in other words; the png image with a lable on top of it, it does not show up at all or it would tend to be placed on top of the center grid.
-How is it possible to make it appear on the bottom with the label on top
-I'm familiar to the layers/z-index concept, so that i've put the image under the label
-I've also tried to use the lambda method described here:
http://iosapi.xamarin.com/index.aspx?link=T:Xamarin.Forms.RelativeLayout
-I've tried with absolute layout as well, with a point, but then it just makes the center grid disapear.
4)I've tried to add a background image, but it won't work at all

-Everything is done in code, android Emulator: MonoForAndroid_API_18
if you want to have a look, the pastebin link is here:
http://pastebin.com/jKgr1q8M

Sorry for my bad english
Could you guys please help me out?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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