I'm working on my main menu at the moment, and all is at last beginning to take shape, but I'm having some trouble with the images I have used for buttons. I re-sized them as to ensure that they all fit on the screen, but when I load up the emulator the images are the same and do not refresh... is there a way to flush the memory of resources (presuming it has loaded them in). I have tried even removing the images from the res/drawables folder but they still remain! I'm experiencing a strange problem with the size issue, where the lowest image is mishapen, and my text won't stay to the right of it!
As a side question - how is that I could change my relative layout (base view) so that it would scroll, allowing me to have larger images as buttons?
many thanks in advance, below is my XML as it stands -
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/lo_mainRelative"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- >
- <TextView
- android:id="@+id/txt_mainTitle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Gift for the Gabbers"
- android:textSize="24sp"
- android:layout_alignParentTop="true"
- android:layout_centerInParent="true"
- >
- </TextView>
- <TextView
- android:id="@+id/txt_welcome"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Welcome to the Gift for the Gabbers, an application that can assist you in keeping track of how you use your phone!"
- android:layout_below="@+id/txt_mainTitle"
- android:layout_centerHorizontal="true"
- android:padding="10px"
- android:layout_marginBottom="10px"
- >
- </TextView>
- <ImageButton
- android:id="@+id/btn_globalStats"
- android:src="@drawable/charts2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/txt_welcome"
- android:layout_alignParentLeft="true"
- >
- </ImageButton>
- <TextView
- android:id="@+id/txt_globalStats"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Click here to view overall stats regarding your phone usage"
- android:textSize="12sp"
- android:layout_alignTop="@+id/btn_globalStats"
- android:layout_toRightOf="@+id/btn_globalStats"
- android:layout_marginLeft="10px"
- >
- </TextView>
- <ImageButton
- android:id="@+id/btn_contactSpecific"
- android:src="@drawable/contact"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/btn_globalStats"
- >
- </ImageButton>
- <TextView
- android:id="@+id/txt_contactSpecific"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Click here to view stats on a specific contact"
- android:textSize="12sp"
- android:layout_alignTop="@+id/btn_contactSpecific"
- android:layout_toRightOf="@+id/btn_contactSpecific"
- android:layout_marginLeft="10px"
- >
- </TextView>
- <ImageButton
- android:id="@+id/btn_thisMonth"
- android:src="@drawable/month"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/btn_contactSpecific"
- android:layout_alignParentLeft="true"
- >
- </ImageButton>
- <TextView
- android:id="@+id/txt_thisMonth"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Click here to view information regarding your usage this month"
- android:textSize="12sp"
- android:layout_alignTop="@+id/btn_thisMonth"
- android:layout_toRightOf="@+id/btn_thisMonth"
- android:layout_marginLeft="10px"
- >
- </TextView>
- <ImageButton
- android:id="@+id/btn_settings"
- android:src="@drawable/settings"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/btn_thisMonth"
- android:layout_alignParentLeft="true"
- >
- </ImageButton>
- <TextView
- android:id="@+id/txt_settings"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Change the settings of this application"
- android:textSize="12sp"
- android:layout_alignTop="@+id/btn_settings"
- android:layout_toRightOf="@+id/btn_Settings"
- android:layout_marginLeft="10px"
- >
- </TextView>
- </RelativeLayout>
Parsed in 0.011 seconds, using GeSHi 1.0.8.4
edit - All fixed now!


