Skip to content
Browse files

create, edit, search and view events

  • Loading branch information...
1 parent 15f2ae7 commit 96d24a17ba2a02b6cc47653e2d0bf72ede0d0b66 @mahmoud-abdelaziz committed Mar 22, 2013
View
24 gen/com/dkit/eventsmanger/R.java
@@ -20,16 +20,38 @@
public static final int editText1=0x7f070001;
public static final int editText2=0x7f070002;
public static final int editText3=0x7f070006;
- public static final int menu_settings=0x7f07000b;
+ public static final int editText4=0x7f07000e;
+ public static final int imageView1=0x7f070012;
+ public static final int item_event_attending=0x7f070015;
+ public static final int item_event_date=0x7f070014;
+ public static final int item_event_edit=0x7f070016;
+ public static final int item_event_mark_past=0x7f070017;
+ public static final int item_event_name=0x7f070013;
+ public static final int item_event_remove=0x7f070018;
+ public static final int menu_settings=0x7f07001d;
+ public static final int radio0=0x7f07001b;
+ public static final int radio1=0x7f07001c;
+ public static final int radio2=0x7f07001a;
+ public static final int radioGroup1=0x7f070019;
+ public static final int scrollView1=0x7f07000b;
public static final int spinner1=0x7f070008;
public static final int spinner2=0x7f07000a;
public static final int textView1=0x7f070000;
public static final int textView2=0x7f070007;
public static final int textView3=0x7f070009;
+ public static final int textView4=0x7f07000c;
+ public static final int textView5=0x7f07000d;
+ public static final int textView6=0x7f07000f;
+ public static final int textView7=0x7f070010;
+ public static final int textView8=0x7f070011;
}
public static final class layout {
public static final int activity_login=0x7f030000;
public static final int activity_register=0x7f030001;
+ public static final int create_event=0x7f030002;
+ public static final int event_item=0x7f030003;
+ public static final int event_view=0x7f030004;
+ public static final int search_activity=0x7f030005;
}
public static final class menu {
public static final int activity_login=0x7f060000;
View
131 res/layout/create_event.xml
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <ScrollView
+ android:id="@+id/scrollView1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/textView1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Medium Text"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <EditText
+ android:id="@+id/editText1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10" >
+
+ <requestFocus />
+ </EditText>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <TextView
+ android:id="@+id/textView2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Medium Text"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <EditText
+ android:id="@+id/editText2"
+ android:layout_width="150dp"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:inputType="number" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <TextView
+ android:id="@+id/textView3"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Medium Text"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <Spinner
+ android:id="@+id/spinner1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/textView4"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Medium Text"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <EditText
+ android:id="@+id/editText3"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10" />
+
+ <TextView
+ android:id="@+id/textView5"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Date"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <EditText
+ android:id="@+id/editText4"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:inputType="date" />
+
+ <TextView
+ android:id="@+id/textView6"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Medium Text"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/textView7"
+ android:layout_width="match_parent"
+ android:layout_height="64dp"
+ android:text="Medium Text"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/textView8"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Department"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+
+ <Spinner
+ android:id="@+id/spinner2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <Button
+ android:id="@+id/button1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Button" />
+ </LinearLayout>
+ </ScrollView>
+
+</LinearLayout>
View
68 res/layout/event_item.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:id="@+id/imageView1"
+ android:layout_width="107dp"
+ android:layout_height="124dp"
+ android:src="@drawable/ic_launcher" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="124dp"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/item_event_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Event Name"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/item_event_date"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Date"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/item_event_attending"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Number of attending"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <Button
+ android:id="@+id/item_event_edit"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Edit" />
+
+ <Button
+ android:id="@+id/item_event_mark_past"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Mark as past" />
+
+ <Button
+ android:id="@+id/item_event_remove"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Remove" />
+
+ </LinearLayout>
+
+ </LinearLayout>
+
+</LinearLayout>
View
66 res/layout/event_view.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <ImageView
+ android:id="@+id/imageView1"
+ android:layout_width="100dp"
+ android:layout_height="match_parent"
+ android:src="@drawable/ic_launcher" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="86dp"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/textView1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Event Name"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/textView2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Organizers"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/textView3"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Date"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+ </LinearLayout>
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/textView4"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Event discription"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/textView5"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="0.82"
+ android:text="Description "
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <Button
+ android:id="@+id/button1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Sign up" />
+
+</LinearLayout>
View
72 res/layout/search_activity.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <TextView
+ android:id="@+id/textView1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginLeft="84dp"
+ android:layout_marginTop="79dp"
+ android:text="Search Events"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <EditText
+ android:id="@+id/editText1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentRight="true"
+ android:layout_below="@+id/textView1"
+ android:layout_marginTop="14dp"
+ android:ems="10"
+ android:hint="Enter event name" />
+
+ <RadioGroup
+ android:id="@+id/radioGroup1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentRight="true"
+ android:layout_below="@+id/editText1" >
+
+ <RadioButton
+ android:id="@+id/radio2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="All campus" />
+
+ <RadioButton
+ android:id="@+id/radio2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Pj Carrols" />
+
+ <RadioButton
+ android:id="@+id/radio0"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:checked="true"
+ android:text="Main campus" />
+
+ <RadioButton
+ android:id="@+id/radio1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Nursing building" />
+ </RadioGroup>
+
+ <Button
+ android:id="@+id/button1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentRight="true"
+ android:layout_below="@+id/radioGroup1"
+ android:layout_marginTop="22dp"
+ android:text="Search!" />
+
+</RelativeLayout>
View
13 src/com/dkit/eventsmanger/EventsArrayAdapter.java
@@ -0,0 +1,13 @@
+package com.dkit.eventsmanger;
+
+import android.content.Context;
+import android.widget.ArrayAdapter;
+
+public class EventsArrayAdapter extends ArrayAdapter<String> {
+
+ public EventsArrayAdapter(Context context, int textViewResourceId) {
+ super(context, textViewResourceId);
+ // TODO Auto-generated constructor stub
+ }
+
+}
View
2 src/com/dkit/eventsmanger/LoginActivity.java
@@ -9,7 +9,7 @@
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_login);
+ setContentView(R.layout.create_event);
}
@Override

0 comments on commit 96d24a1

Please sign in to comment.
Something went wrong with that request. Please try again.