1 package com
.owncloud
.android
.ui
;
3 import com
.owncloud
.android
.R
;
5 import android
.content
.Context
;
6 import android
.util
.AttributeSet
;
7 import android
.widget
.Button
;
11 * Button for customizing the button background
14 public class CustomButton
extends Button
{
16 public CustomButton(Context context
) {
19 boolean customButtons
= getResources().getBoolean(R
.bool
.custom_buttons
);
22 this.setBackgroundResource(R
.drawable
.btn_default
);
26 public CustomButton(Context context
, AttributeSet attrs
) {
27 super(context
, attrs
);
29 boolean customButtons
= getResources().getBoolean(R
.bool
.custom_buttons
);
32 this.setBackgroundResource(R
.drawable
.btn_default
);
36 public CustomButton(Context context
, AttributeSet attrs
, int defStyle
) {
37 super(context
, attrs
, defStyle
);
39 boolean customButtons
= getResources().getBoolean(R
.bool
.custom_buttons
);
42 this.setBackgroundResource(R
.drawable
.btn_default
);