Back to project page ProgressButton.
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.
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; } }