<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="vertical"
- android:id="@+id/basic_tab" >
+ android:orientation="vertical" >
<EditText
android:inputType="text"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="vertical"
- android:id="@+id/details_tab" >
+ android:orientation="vertical" >
<EditText
android:id="@+id/description"
}
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)basicFragment.getView().findViewById(R.id.eventtitle)).getText().toString();
+ final String title=((EditText)v.findViewById(R.id.eventtitle)).getText().toString();
final String eventLocation="";
- final String description=((EditText)detailsFragment.getView().findViewById(R.id.description)).getText().toString();
+ final String description=((EditText)v.findViewById(R.id.description)).getText().toString();
final int eventColor=0;
final long dtstart=0;
final long dtend=0;