Ok, I am trying to get a button to pop up. When I add :
b.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
int z = 5;
}
Logcat tells me the resource is invalid.
Code:
b.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
int z = 5;
}
}
XML: <-- I have a strong hunch I'm doing something wrong here.
(Everything is right up to
the button entry)
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageSwitcher android:id="@+id/switcher"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
/>
<Gallery android:id="@+id/gallery"
android:background="#55000000"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:gravity="center_vertical"
android:spacing="16dp"
/>
<Button android:id ="@+id/buttonator"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@id/switcher"
android:text="Close"
/>
</RelativeLayout>
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---