Android Open Source - daisy_main C V






From Project

Back to project page daisy_main.

License

The source code is released under:

GNU General Public License

If you think the Android project daisy_main 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 de.uvwxy.daisy.nodemap.guiviews;
//from w w w .  j ava  2 s  .c o  m
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import de.uvwxy.daisy.nodemap.R;

public abstract class CV {
  public String ID;
  protected String title = null;
  protected int iconID;

  private boolean enabled = true;
  protected boolean isMenuAction = false;
  
  public boolean isMenuAction(){
    return isMenuAction;
  }

  public boolean isEnabled() {
    return enabled;
  }

  public void setEnabled(boolean enabled) {
    this.enabled = enabled;
  }

  public CV(String id, String title, int iconID) {
    this.ID = id;
    this.title = title;
    this.iconID = iconID;
  }

  public View onCreateListItemView(LayoutInflater inflater, View convertView, ViewGroup parent) {
    View rootView = inflater.inflate(R.layout.content_item_simple, parent, false);
    ImageView tvIcon = (ImageView) rootView.findViewById(R.id.ivItemIcon);
    tvIcon.setImageResource(iconID);
    TextView tvLabel = (TextView) rootView.findViewById(R.id.tvLabel);
    tvLabel.setText(title);
    tvLabel.setEnabled(enabled);
    tvIcon.setEnabled(enabled);  
    return rootView;
  }

  
  
  public abstract View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState);

  public void onActivityResult(int requestCode, int resultCode, Intent data) {

  }

  public void onSaveInstanceState(Bundle outState) {

  }
  
  public void onDestroyView(){
    
  }

  public void onPause() {

  }

  public void onResume() {

  }

  public void onDestroy() {

  }
  
  public void onClickAction(){
    
  }

  @Override
  public String toString() {
    return title;
  }

  public boolean onCreateOptionsMenu(Menu mENU, MenuInflater inflater) {
    // TODO Auto-generated method stub
    return false;
  }

  public boolean onOptionsItemSelected(MenuItem item) {
    // TODO Auto-generated method stub
    return false;
  }
}




Java Source Code List

de.uvwxy.daisy.nodemap.gui.ActivityAnnotation.java
de.uvwxy.daisy.nodemap.gui.ActivityNodeDetails.java
de.uvwxy.daisy.nodemap.gui.DetailActivity.java
de.uvwxy.daisy.nodemap.gui.DetailFragment.java
de.uvwxy.daisy.nodemap.gui.MainListActivity.java
de.uvwxy.daisy.nodemap.gui.MainListFragment.java
de.uvwxy.daisy.nodemap.guicontent.CMARView.java
de.uvwxy.daisy.nodemap.guicontent.CMBalloon.java
de.uvwxy.daisy.nodemap.guicontent.CMLocation.java
de.uvwxy.daisy.nodemap.guicontent.CMLogs.java
de.uvwxy.daisy.nodemap.guicontent.CMMap.java
de.uvwxy.daisy.nodemap.guicontent.CMSensors.java
de.uvwxy.daisy.nodemap.guicontent.CMXBee.java
de.uvwxy.daisy.nodemap.guicontent.CM.java
de.uvwxy.daisy.nodemap.guicontent.IDestroy.java
de.uvwxy.daisy.nodemap.guiviews.CVARView.java
de.uvwxy.daisy.nodemap.guiviews.CVBalloonClient.java
de.uvwxy.daisy.nodemap.guiviews.CVBalloon.java
de.uvwxy.daisy.nodemap.guiviews.CVChat.java
de.uvwxy.daisy.nodemap.guiviews.CVDeploymentData.java
de.uvwxy.daisy.nodemap.guiviews.CVDeployment.java
de.uvwxy.daisy.nodemap.guiviews.CVLogs.java
de.uvwxy.daisy.nodemap.guiviews.CVMap.java
de.uvwxy.daisy.nodemap.guiviews.CVMenuItem.java
de.uvwxy.daisy.nodemap.guiviews.CVParticipantScan.java
de.uvwxy.daisy.nodemap.guiviews.CVXBee.java
de.uvwxy.daisy.nodemap.guiviews.CV.java
de.uvwxy.daisy.nodemap.listobjects.APIMessageArrayAdapter.java
de.uvwxy.daisy.nodemap.listobjects.CVArrayAdapter.java
de.uvwxy.daisy.nodemap.listobjects.ChatMessageArrayAdapter.java
de.uvwxy.daisy.nodemap.listobjects.LogMessageArrayAdapter.java
de.uvwxy.daisy.nodemap.listobjects.SampleGridViewAdapter.java