2013-11-04 Miguel de Dios <miguel.dedios@artica.es>
* src/pandroid_event_viewer/pandorafms/EventList.java, res/layout/list_view_layout.xml: changes in the theme of the app. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8999 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
21c8f492ec
commit
3d02aa7654
|
@ -1,4 +1,9 @@
|
|||
2013-11-01 Miguel de Dios <miguel.dedios@artica.es>
|
||||
2013-11-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* src/pandroid_event_viewer/pandorafms/EventList.java,
|
||||
res/layout/list_view_layout.xml: changes in the theme of the app.
|
||||
|
||||
2013-11-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* src/pandroid_event_viewer/pandorafms/EventList.java,
|
||||
src/pandroid_event_viewer/pandorafms/Main.java,
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
android:orientation="horizontal" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/refrest_icon_button_list"
|
||||
android:id="@+id/refresh_icon_button_list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
|
|
|
@ -68,7 +68,7 @@ public class EventList extends ListActivity {
|
|||
private static final int VALIDATE_EVENT_ACTIVITY = 0;
|
||||
private ListView lv;
|
||||
private MyAdapter la;
|
||||
private PandroidEventviewerActivity object;
|
||||
public PandroidEventviewerActivity object;
|
||||
private BroadcastReceiver onBroadcast;
|
||||
private Dialog creatingIncidentDialog;
|
||||
private Context context = this;
|
||||
|
@ -138,6 +138,22 @@ public class EventList extends ListActivity {
|
|||
}
|
||||
});
|
||||
|
||||
ImageButton refresh_button = (ImageButton)findViewById(R.id.refresh_icon_button_list);
|
||||
refresh_button.setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
EventList a = (EventList)v.getContext();
|
||||
|
||||
|
||||
a.object.loadInProgress = true;
|
||||
a.object.getNewListEvents = true;
|
||||
a.object.eventList = new ArrayList<EventListItem>();
|
||||
a.toggleLoadingLayout();
|
||||
a.object.executeBackgroundGetEvents(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
registerReceiver(onBroadcast, new IntentFilter("eventlist.java"));
|
||||
|
||||
this.toggleLoadingLayout();
|
||||
|
|
Loading…
Reference in New Issue