Android Open Source - AnyadsTodos Archive Tasks Activity






From Project

Back to project page AnyadsTodos.

License

The source code is released under:

GNU General Public License

If you think the Android project AnyadsTodos listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.dlacours.anyadstodos;
/*  w ww.jav a 2 s  . c om*/
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ListView;

public class ArchiveTasksActivity extends Activity {
  /*This class initializes my archive list adapter*/
  
  private static ArchiveTaskAdapter archiveAdapter;
  private ListView archList;
  private TaskList archTasks;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.archive_list);
    
    archList = (ListView) findViewById(R.id.archiveListView);
    
    archTasks = TaskListController.getArchList();
    
        archiveAdapter = new ArchiveTaskAdapter(this, archTasks);
      
      archList.setAdapter(archiveAdapter);
      archList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
    
  }
  
  
    public static void notifyChange(){
      archiveAdapter.notifyDataSetChanged();
    }
    
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.archive_tasks, menu);
    return true;
  }

}




Java Source Code List

com.dlacours.anyadstodos.ArchiveTaskAdapter.java
com.dlacours.anyadstodos.ArchiveTasksActivity.java
com.dlacours.anyadstodos.EditTaskAdapter.java
com.dlacours.anyadstodos.EditTasksActivity.java
com.dlacours.anyadstodos.MailItemsActivity.java
com.dlacours.anyadstodos.MailItemsAdapter.java
com.dlacours.anyadstodos.MainActivity.java
com.dlacours.anyadstodos.SummariesActivity.java
com.dlacours.anyadstodos.TaskListAdapter.java
com.dlacours.anyadstodos.TaskListController.java
com.dlacours.anyadstodos.TaskList.java
com.dlacours.anyadstodos.Task.java