1 package de
.mobilcom
.debitel
.cloud
.android
.ui
;
3 import de
.mobilcom
.debitel
.cloud
.android
.R
;
4 import android
.content
.Context
;
5 import android
.util
.AttributeSet
;
6 import android
.widget
.Button
;
10 * Button for customizing the button background
13 public class CustomButton
extends Button
{
15 public CustomButton(Context context
) {
18 boolean customButtons
= getResources().getBoolean(R
.bool
.custom_buttons
);
21 this.setBackgroundResource(R
.drawable
.btn_default
);
25 public CustomButton(Context context
, AttributeSet attrs
) {
26 super(context
, attrs
);
28 boolean customButtons
= getResources().getBoolean(R
.bool
.custom_buttons
);
31 this.setBackgroundResource(R
.drawable
.btn_default
);
35 public CustomButton(Context context
, AttributeSet attrs
, int defStyle
) {
36 super(context
, attrs
, defStyle
);
38 boolean customButtons
= getResources().getBoolean(R
.bool
.custom_buttons
);
41 this.setBackgroundResource(R
.drawable
.btn_default
);