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:layout_alignParentLeft="true"
|
||||||
android:paddingLeft="5dp"
|
android:paddingLeft="5dp"
|
||||||
android:paddingRight="5dp" />
|
android:paddingRight="5dp" />
|
||||||
|
|
||||||
<TextView android:id="@+id/event_view_datetime"
|
<TextView android:id="@+id/event_view_datetime"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:paddingLeft="5dp"
|
android:paddingLeft="5dp"
|
||||||
android:paddingRight="5dp" />
|
android:paddingRight="5dp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<Button android:id="@+id/event_view_link"
|
<Button android:id="@+id/event_view_link"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -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" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/event_fb_icon"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@drawable/fbicon" />
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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()));
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public abstract class BaseListActivity extends BaseDnsActivity {
|
|||||||
private IParser parser;
|
private IParser parser;
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user