Commit b6c87e87 authored by Shinryu's avatar Shinryu

Edited the method definition for the save button on AddEditProfile

parent 78f1e2a4
......@@ -29,62 +29,65 @@ public final class R {
public static final int prelimlogo=0x7f020003;
}
public static final class id {
public static final int action_settings=0x7f080037;
public static final int btnAddMenu=0x7f080017;
public static final int btnAddToCart=0x7f080034;
public static final int btnAdmin=0x7f08002a;
public static final int btnBack=0x7f080033;
public static final int btnCancel=0x7f080027;
public static final int btnCart=0x7f080013;
public static final int btnConfigure=0x7f080007;
public static final int btnConfirm=0x7f080028;
public static final int btnCustomer=0x7f08002c;
public static final int btnDelete=0x7f080015;
public static final int btnDeleteMenu=0x7f080016;
public static final int btnDone=0x7f080001;
public static final int btnEditBill=0x7f080006;
public static final int btnEditMenu=0x7f080005;
public static final int btnFinalize=0x7f08000a;
public static final int btnKitchen=0x7f08002b;
public static final int btnLogin=0x7f08001e;
public static final int btnLogout=0x7f080008;
public static final int btnOff=0x7f08000d;
public static final int btnOn=0x7f08000e;
public static final int btnRegister=0x7f08001f;
public static final int btnRevert=0x7f080014;
public static final int btnSave=0x7f080002;
public static final int btnSearch=0x7f080011;
public static final int checkRem=0x7f08001d;
public static final int list=0x7f080012;
public static final int listCart=0x7f080009;
public static final int listKitchen=0x7f080018;
public static final int listview1=0x7f08000f;
public static final int logo=0x7f080003;
public static final int logout=0x7f08002d;
public static final int priceName=0x7f08002f;
public static final int textView00=0x7f080035;
public static final int textView01=0x7f080036;
public static final int textView1=0x7f080019;
public static final int textView2=0x7f08001b;
public static final int textView3=0x7f080029;
public static final int textView4=0x7f080020;
public static final int textView5=0x7f080021;
public static final int textView6=0x7f080023;
public static final int textView7=0x7f080025;
public static final int textView8=0x7f080004;
public static final int textView9=0x7f08000c;
public static final int totesPrice=0x7f08000b;
public static final int tvDesc=0x7f080031;
public static final int tvName=0x7f08002e;
public static final int tvPrice=0x7f080030;
public static final int tvTags=0x7f080032;
public static final int action_settings=0x7f08003a;
public static final int btnAddMenu=0x7f08001a;
public static final int btnAddToCart=0x7f080037;
public static final int btnAdmin=0x7f08002d;
public static final int btnBack=0x7f080036;
public static final int btnCancel=0x7f08002a;
public static final int btnCart=0x7f080016;
public static final int btnConfigure=0x7f08000a;
public static final int btnConfirm=0x7f08002b;
public static final int btnCustomer=0x7f08002f;
public static final int btnDelete=0x7f080018;
public static final int btnDeleteMenu=0x7f080019;
public static final int btnDone=0x7f080004;
public static final int btnEditBill=0x7f080009;
public static final int btnEditMenu=0x7f080008;
public static final int btnFinalize=0x7f08000d;
public static final int btnKitchen=0x7f08002e;
public static final int btnLogin=0x7f080021;
public static final int btnLogout=0x7f08000b;
public static final int btnOff=0x7f080010;
public static final int btnOn=0x7f080011;
public static final int btnRegister=0x7f080022;
public static final int btnRevert=0x7f080017;
public static final int btnSave=0x7f080005;
public static final int btnSearch=0x7f080014;
public static final int checkRem=0x7f080020;
public static final int list=0x7f080015;
public static final int listCart=0x7f08000c;
public static final int listKitchen=0x7f08001b;
public static final int listview1=0x7f080012;
public static final int logo=0x7f080006;
public static final int logout=0x7f080030;
public static final int priceName=0x7f080032;
public static final int textView00=0x7f080038;
public static final int textView01=0x7f080039;
public static final int textView1=0x7f08001c;
public static final int textView2=0x7f08001e;
public static final int textView3=0x7f08002c;
public static final int textView4=0x7f080023;
public static final int textView5=0x7f080024;
public static final int textView6=0x7f080026;
public static final int textView7=0x7f080028;
public static final int textView8=0x7f080007;
public static final int textView9=0x7f08000f;
public static final int totesPrice=0x7f08000e;
public static final int tvDesc=0x7f080034;
public static final int tvName=0x7f080031;
public static final int tvPrice=0x7f080033;
public static final int tvTags=0x7f080035;
public static final int txtDesc=0x7f080002;
public static final int txtItemName=0x7f080000;
public static final int txtPass=0x7f08001c;
public static final int txtPass2=0x7f080026;
public static final int txtResto=0x7f080022;
public static final int txtSearch=0x7f080010;
public static final int txtUser=0x7f08001a;
public static final int txtUser2=0x7f080024;
public static final int txtPass=0x7f08001f;
public static final int txtPass2=0x7f080029;
public static final int txtPrice=0x7f080001;
public static final int txtResto=0x7f080025;
public static final int txtSearch=0x7f080013;
public static final int txtTags=0x7f080003;
public static final int txtUser=0x7f08001d;
public static final int txtUser2=0x7f080027;
}
public static final class layout {
public static final int activity_add_edit_profile=0x7f030000;
......
......@@ -60,6 +60,7 @@
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/txtPrice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10" />
......@@ -87,6 +88,7 @@
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/txtDesc"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ems="19"
......@@ -105,6 +107,7 @@
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/txtTags"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine" />
......
......@@ -5,6 +5,7 @@ import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class AddEditProfile extends Activity {
......@@ -45,6 +46,13 @@ public class AddEditProfile extends Activity {
public void save (View v) {
// do stuff to save fields
EditText nm = (EditText) findViewById (R.id.txtItemName);
EditText price = (EditText) findViewById (R.id.txtPrice);
EditText des = (EditText) findViewById (R.id.txtDesc);
EditText tag = (EditText) findViewById (R.id.txtTags);
Toast.makeText (this, "Item is added to menu.", Toast.LENGTH_SHORT).show();
finish();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment