Archived
Adjusted layout a bit and bagan fixing categories.
This commit is contained in:
1 parent
2ac2a6bcf7
commit
45bf722844
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -15,7 +15,7 @@
|
||||
android:layout_below="@id/header"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="20px"
|
||||
android:layout_marginBottom="20px"
|
||||
android:layout_marginBottom="50px"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center">
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ public class JSONParserProgram implements IParser {
|
||||
date = tempJSON.getString("date");
|
||||
text = tempJSON.getString("content");
|
||||
image = tempJSON.getString("thumbnail");
|
||||
category = tempJSON.getString("event");
|
||||
|
||||
tempJSON = tempJSON.getJSONObject("custom_fields");
|
||||
ticketUrl = tempJSON.getJSONArray("_neuf_events_bs_url").getString(0);
|
||||
|
||||
@@ -106,7 +106,7 @@ public abstract class BaseListActivity extends BaseDnsActivity {
|
||||
|
||||
@Override
|
||||
protected Boolean doInBackground(Void ... v) {
|
||||
// Do we have intarwebs?
|
||||
// Do we have intarwebs?
|
||||
// YAY = Fetch the feed.
|
||||
// NAY = Inform about no connection.
|
||||
try {
|
||||
@@ -129,7 +129,7 @@ public abstract class BaseListActivity extends BaseDnsActivity {
|
||||
ListView list = (ListView)findViewById(idList);
|
||||
T[] objects = getObjects();
|
||||
|
||||
Log.i("DNSapp", "Showing " +objects.length +" objects.");
|
||||
Log.i("DNSapp", "Showing " + objects.length +" objects.");
|
||||
ListAdapter adapter = createAdapter(objects);
|
||||
list.setAdapter(adapter);
|
||||
list.setVisibility(View.VISIBLE);
|
||||
|
||||
Reference in new issue
Block a user