Back to project page android-camera-api.
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.
package com.tanukiteam.camera.widget; /* w ww.ja v a 2 s . c o m*/ import com.tanukiteam.camera.R; import android.content.Context; import android.util.AttributeSet; import android.widget.Button; public class CancelButton extends Button { public CancelButton(Context context) { super(context); this.setBackgroundResource(R.drawable.btn_cancel); this.setTextAppearance(context, R.style.CancelButton); } public CancelButton(Context context, AttributeSet attrs) { super(context, attrs); this.setBackgroundResource(R.drawable.btn_cancel); this.setTextAppearance(context, R.style.CancelButton); } public CancelButton(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); this.setBackgroundResource(R.drawable.btn_cancel); this.setTextAppearance(context, R.style.CancelButton); } }