|
|
@@ -0,0 +1,47 @@
|
|
|
+package com.example.yiupang.freefoodfinder;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Created by Acer on 5/26/2017.
|
|
|
+ */
|
|
|
+
|
|
|
+import android.content.Intent;
|
|
|
+import android.os.Bundle;
|
|
|
+import android.support.annotation.Nullable;
|
|
|
+import android.view.KeyEvent;
|
|
|
+import android.view.LayoutInflater;
|
|
|
+import android.view.View;
|
|
|
+import android.view.ViewGroup;
|
|
|
+import android.widget.EditText;
|
|
|
+import android.widget.TextView;
|
|
|
+
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+
|
|
|
+public class CreateEventScreen extends android.support.v4.app.Fragment{
|
|
|
+
|
|
|
+ @Nullable
|
|
|
+ @Override
|
|
|
+ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState)
|
|
|
+ {
|
|
|
+ View view = inflater.inflate(R.layout.create_event, container, false);
|
|
|
+ Event newEvent = new Event();
|
|
|
+
|
|
|
+ EditText editText = (EditText) view.findViewById(R.id.box1);
|
|
|
+ editText.setOnEditorActionListener(new EditText.OnEditorActionListener() {
|
|
|
+ @Override
|
|
|
+ public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
|
|
+ boolean handled = false;
|
|
|
+ int i = 0;
|
|
|
+ handled = true;
|
|
|
+ return handled;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ return view;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|