I'm creating a calendar and will be having animations based on the current season. i.e if it's winter, snowflakes will fall from the top of the screen.
Currently I have the calendar layout in place and when I draw my images at (0,0) I expect them to go to the top left of the screen... I'm adding my snowflake's to the main layout, but for some reason they go to the bottom of my gridView. I can only assume that one of my layouts is taking up space but I'm not sure.. Here is my calendar layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/calendar_main_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg"
android:gravity="center_horizontal"
android:orientation="vertical" >
<Button android:text="Selected :"
android:id="@+id/main_header_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/calendar_top_header" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal" >
<ImageView
android:id="@+id/calendar_left_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/cal_left_arrow_off" />
<Button android:text=""
android:id="@+id/selected_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/calendar_centralheader"
/>
<ImageView
android:id="@+id/calendar_right_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/cal_right_arrow_off" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/blue_bg_with_text" />
</LinearLayout>
<GridView
android:id="@+id/calendar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:numColumns="7" >
</GridView>
</LinearLayout>
here's a screenshot of what the calendar looks like in eclipse: