Android Open Source - ProgressButton Main Activity






From Project

Back to project page ProgressButton.

License

The source code is released under:

MIT License

If you think the Android project ProgressButton 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.sun.progressbutton.sample;
/*  www.  ja va  2 s.  c  o m*/
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;

import com.example.progressbutton.R;
import com.sun.progressbutton.ProgressButton;

public class MainActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    
    ProgressButton button = (ProgressButton) findViewById(R.id.progressView);
    button.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View v) {
      }
    });
  }

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
  }

}




Java Source Code List

com.sun.progressbutton.ProgressButton.java
com.sun.progressbutton.sample.MainActivity.java