]> iEval git - unical.git/commitdiff
Continue previous commit
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 14 Jul 2013 20:53:15 +0000 (23:53 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 14 Jul 2013 20:53:15 +0000 (23:53 +0300)
res/layout/add_event_basic_tab.xml
res/layout/add_event_details_tab.xml
src/ro/ieval/unical/AddEventActivity.java

index 05b98ab1e4ca4c39dcddc9f2e456af589db3c5b6..f8c5a1da0faca6569a7bc61097020e18f8485c7a 100644 (file)
@@ -2,7 +2,8 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:orientation="vertical" >
+    android:orientation="vertical"
+       android:id="@+id/basic_tab" >
 
     <EditText
         android:inputType="text"
index 10d8b77fa9e141a2218568694c17bc48d4ec8bc9..3e74d5f9c9f7a8920111a9aad55ccf4485f7b359 100644 (file)
@@ -2,7 +2,8 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:orientation="vertical" >
+    android:orientation="vertical"
+       android:id="@+id/details_tab" >
 
     <EditText
         android:id="@+id/description"
index 976f4ebcbf168035c9096b8e6b4ed11501664f0d..3971036fc775268264ae1f610cc4cbb20b05bcb8 100644 (file)
@@ -77,12 +77,15 @@ public final class AddEventActivity extends Activity implements OnDateSetListene
        }
 
     private Event getEvent(final Activity v) {
+               final Fragment basicFragment = v.getFragmentManager().findFragmentById(R.id.basic_tab);
+               final Fragment detailsFragment = v.getFragmentManager().findFragmentById(R.id.details_tab);
+
         //TODO get all information
         final long _id=22;
         final String organizer="";
-        final String title=((EditText)v.findViewById(R.id.eventtitle)).getText().toString();
+        final String title=((EditText)basicFragment.getView().findViewById(R.id.eventtitle)).getText().toString();
         final String eventLocation="";
-        final String description=((EditText)v.findViewById(R.id.description)).getText().toString();
+        final String description=((EditText)detailsFragment.getView().findViewById(R.id.description)).getText().toString();
         final int eventColor=0;
         final long dtstart=0;
         final long dtend=0;
This page took 0.019686 seconds and 4 git commands to generate.