Archived
Category sorting now works. Also removed the temp pictures with TEMPORARY pig pics.
This commit is contained in:
1 parent
d09c5ec326
commit
c19c5b03f8
10 files changed
+19
-10
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
@@ -32,7 +32,7 @@
|
||||
android:layout_alignParentLeft="true"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp" />
|
||||
|
||||
|
||||
<TextView android:id="@+id/event_view_datetime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -40,7 +40,7 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<Button android:id="@+id/event_view_link"
|
||||
android:layout_width="match_parent"
|
||||
@@ -59,6 +59,12 @@
|
||||
<TextView android:id="@+id/event_view_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/event_fb_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/fbicon" />
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -8,6 +8,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_alignParentTop="true"/>
|
||||
|
||||
<!-- Picture size for buttons: 425x350 -->
|
||||
<!-- MENU: -->
|
||||
<LinearLayout
|
||||
android:layout_height="match_parent"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/main_menu_join"
|
||||
style="@style/MetroTile"
|
||||
android:background="@drawable/ex4"
|
||||
android:background="@drawable/gris"
|
||||
android:onClick="joinButton" >
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/main_menu_news"
|
||||
style="@style/MetroTile"
|
||||
android:background="@drawable/ex2"
|
||||
android:background="@drawable/gris"
|
||||
android:onClick="newsButton" >
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/main_menu_program"
|
||||
style="@style/MetroTile"
|
||||
android:background="@drawable/ex1"
|
||||
android:background="@drawable/gris"
|
||||
android:onClick="programButton" >
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/main_menu_tickets"
|
||||
style="@style/MetroTile"
|
||||
android:background="@drawable/ex3"
|
||||
android:background="@drawable/gris"
|
||||
android:onClick="ticketButton" >
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -11,6 +11,7 @@ import android.text.util.Linkify;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
@@ -38,6 +39,7 @@ public class EventViewActivity extends BaseDnsActivity {
|
||||
TextView location = (TextView) findViewById(R.id.event_view_location);
|
||||
TextView datetime = (TextView) findViewById(R.id.event_view_datetime);
|
||||
Button link = (Button) findViewById(R.id.event_view_link);
|
||||
ImageView fblink = (ImageView) findViewById(R.id.event_fb_icon);
|
||||
|
||||
title.setText(Html.fromHtml(e.title));
|
||||
location.setText(Html.fromHtml(e.getLocation()));
|
||||
|
||||
@@ -27,7 +27,6 @@ public abstract class BaseListActivity extends BaseDnsActivity {
|
||||
private IParser parser;
|
||||
|
||||
private boolean isUpdated = false;
|
||||
|
||||
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
@@ -136,6 +136,7 @@ public class EventListActivity extends BaseListActivity {
|
||||
if (message.length < 1)
|
||||
message = new String[] { Event.ALL };
|
||||
|
||||
currentCategory = message[0];
|
||||
ListCreator<?> lc = getListCreator(EventListActivity.this, R.id.event_list, R.id.event_list_progress_bar);
|
||||
lc.setCategory(message[0]);
|
||||
lc.execute();
|
||||
@@ -146,7 +147,7 @@ public class EventListActivity extends BaseListActivity {
|
||||
Dialog dialog = new ChooseCategoryDialog(this, callback, getDataHandler().getEventCategories());
|
||||
dialog.show();
|
||||
} 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
|
||||
protected Event[] getObjects() {
|
||||
return getDataHandler().getEvents(Event.ALL);
|
||||
return getDataHandler().getEvents(currentCategory);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user