</LinearLayout>
<TextView
- android:id="@+id/textView2"
+ android:id="@+id/location"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/description"
android:ems="10"
android:inputType="textMultiLine" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="2.13" >
-
- <TimePicker
- android:id="@+id/timePicker1"
- android:layout_width="171dp"
- android:layout_height="wrap_content" />
-
- <DatePicker
- android:id="@+id/datePicker1"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
-
- </LinearLayout>
-
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Description:"
+ android:text="@string/descriptionlabel"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:text="Small Text"
android:textAppearance="?android:attr/textAppearanceSmall" />
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <TextView
+ android:id="@+id/textView1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/locationlabel"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/location"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Medium Text"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ </LinearLayout>
+
</LinearLayout>
\ No newline at end of file
android:layout_weight="0.00" >
<TextView
- android:id="@+id/textView2"
+ android:id="@+id/location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/userlabel"
>
</item>
+ <item android:id="@+id/deleteevent"
+ android:icon="@android:drawable/ic_menu_delete"
+ ></item>
</menu>
<string name="app_id">148275978690487</string>
<string name="title">Title</string>
<string name="description">Description</string>
+ <string name="descriptionlabel">Description: </string>
<string name="login">Log In</string>
<string name="location">Location</string>
<string name="userlabel">User: </string>
--- /dev/null
+package ro.ieval.unical;
+
+import java.util.Date;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.widget.TextView;
+
+public class displayEventActivity extends Activity {
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ // TODO Auto-generated method stub
+ super.onCreate(savedInstanceState);
+ //aici iei parametru
+ Event e=new Event();
+ setContentView(R.layout.eventview);
+ final TextView eventTitle= (TextView) findViewById(R.id.eventTitle);
+ final TextView date=(TextView) findViewById(R.id.date);
+ final TextView description=(TextView) findViewById(R.id.description);
+ final TextView location= (TextView) findViewById(R.id.location);
+ eventTitle.setText(e.title);
+ date.setText((new Date(e.date)).toString());
+ description.setText(e.description);
+ location.setText(e.location);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // TODO Auto-generated method stub
+ // nu stiu cum sa pun delete in loc de new event
+ MenuInflater inflater = getMenuInflater();
+ inflater.inflate(R.menu.options, menu);
+ return true;
+ }
+}