Category sorting now works. Also removed the temp pictures with TEMPORARY pig pics.

This commit is contained in:
Lars Jansøn Engvik committed 2012-11-14 21:15:22 +01:00
1 parent d09c5ec326
commit c19c5b03f8
10 files changed
+17 -8

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

+7 -1
View File
@@ -59,6 +59,12 @@
<TextView android:id="@+id/event_view_description" <TextView android:id="@+id/event_view_description"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</ScrollView>
<ImageView
android:id="@+id/event_fb_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/fbicon" />
</ScrollView>
</RelativeLayout> </RelativeLayout>
+1
View File
@@ -8,6 +8,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_alignParentTop="true"/> android:layout_alignParentTop="true"/>
<!-- Picture size for buttons: 425x350 -->
<!-- MENU: --> <!-- MENU: -->
<LinearLayout <LinearLayout
android:layout_height="match_parent" android:layout_height="match_parent"
+1 -1
View File
@@ -2,7 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_menu_join" android:id="@+id/main_menu_join"
style="@style/MetroTile" style="@style/MetroTile"
android:background="@drawable/ex4" android:background="@drawable/gris"
android:onClick="joinButton" > android:onClick="joinButton" >
<TextView <TextView
+1 -1
View File
@@ -2,7 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_menu_news" android:id="@+id/main_menu_news"
style="@style/MetroTile" style="@style/MetroTile"
android:background="@drawable/ex2" android:background="@drawable/gris"
android:onClick="newsButton" > android:onClick="newsButton" >
<TextView <TextView
+1 -1
View File
@@ -2,7 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_menu_program" android:id="@+id/main_menu_program"
style="@style/MetroTile" style="@style/MetroTile"
android:background="@drawable/ex1" android:background="@drawable/gris"
android:onClick="programButton" > android:onClick="programButton" >
<TextView <TextView
+1 -1
View File
@@ -2,7 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_menu_tickets" android:id="@+id/main_menu_tickets"
style="@style/MetroTile" style="@style/MetroTile"
android:background="@drawable/ex3" android:background="@drawable/gris"
android:onClick="ticketButton" > android:onClick="ticketButton" >
<TextView <TextView
@@ -11,6 +11,7 @@ import android.text.util.Linkify;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
import android.widget.Button; import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
@@ -38,6 +39,7 @@ public class EventViewActivity extends BaseDnsActivity {
TextView location = (TextView) findViewById(R.id.event_view_location); TextView location = (TextView) findViewById(R.id.event_view_location);
TextView datetime = (TextView) findViewById(R.id.event_view_datetime); TextView datetime = (TextView) findViewById(R.id.event_view_datetime);
Button link = (Button) findViewById(R.id.event_view_link); Button link = (Button) findViewById(R.id.event_view_link);
ImageView fblink = (ImageView) findViewById(R.id.event_fb_icon);
title.setText(Html.fromHtml(e.title)); title.setText(Html.fromHtml(e.title));
location.setText(Html.fromHtml(e.getLocation())); location.setText(Html.fromHtml(e.getLocation()));
@@ -28,7 +28,6 @@ public abstract class BaseListActivity extends BaseDnsActivity {
private boolean isUpdated = false; private boolean isUpdated = false;
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
@@ -136,6 +136,7 @@ public class EventListActivity extends BaseListActivity {
if (message.length < 1) if (message.length < 1)
message = new String[] { Event.ALL }; message = new String[] { Event.ALL };
currentCategory = message[0];
ListCreator<?> lc = getListCreator(EventListActivity.this, R.id.event_list, R.id.event_list_progress_bar); ListCreator<?> lc = getListCreator(EventListActivity.this, R.id.event_list, R.id.event_list_progress_bar);
lc.setCategory(message[0]); lc.setCategory(message[0]);
lc.execute(); lc.execute();
@@ -146,7 +147,7 @@ public class EventListActivity extends BaseListActivity {
Dialog dialog = new ChooseCategoryDialog(this, callback, getDataHandler().getEventCategories()); Dialog dialog = new ChooseCategoryDialog(this, callback, getDataHandler().getEventCategories());
dialog.show(); dialog.show();
} else { } else {
Toast.makeText(this, R.string.error_loading, Toast.LENGTH_SHORT); Toast.makeText(this, R.string.error_loading, Toast.LENGTH_SHORT).show();
} }
} }
@@ -157,7 +158,7 @@ public class EventListActivity extends BaseListActivity {
@Override @Override
protected Event[] getObjects() { protected Event[] getObjects() {
return getDataHandler().getEvents(Event.ALL); return getDataHandler().getEvents(currentCategory);
} }
}; };
} }