Android Open Source - android-camera-api Confirm Button






From Project

Back to project page android-camera-api.

License

The source code is released under:

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...

If you think the Android project android-camera-api 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.tanukiteam.camera.widget;
/*from   w  w w.  j  ava 2 s  . co  m*/
import com.tanukiteam.camera.R;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.Button;


public class ConfirmButton extends Button{
  public ConfirmButton(Context context) {
    super(context);

    setBackgroundResource(R.drawable.btn_confirm);
      this.setTextAppearance(context, R.style.ConfirmButton);

  }

  public ConfirmButton(Context context, AttributeSet attrs) {
    super(context, attrs);

    this.setBackgroundResource(R.drawable.btn_confirm);
      this.setTextAppearance(context, R.style.ConfirmButton);

  }

  public ConfirmButton(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);

    this.setBackgroundResource(R.drawable.btn_confirm);
      this.setTextAppearance(context, R.style.ConfirmButton);

  }
}




Java Source Code List

com.tanukiteam.camera.CameraAPIActivity.java
com.tanukiteam.camera.CameraCustomGalleryActivity.java
com.tanukiteam.camera.CameraPreview.java
com.tanukiteam.camera.utils.Utility.java
com.tanukiteam.camera.widget.CancelButton.java
com.tanukiteam.camera.widget.ConfirmButton.java