|
|
@@ -136,8 +136,7 @@ public final class CaptureActivity extends Activity implements
|
|
|
|
|
|
swith_button = (Button) findViewById(R.id.btn_switch);
|
|
|
swith_button.setTag("false");
|
|
|
- swith_button.setBackgroundColor(getResources().getColor(
|
|
|
- R.color.message_fail));
|
|
|
+ swith_button.setBackground(getDrawable(R.drawable.ra_redbg_round_corner_25));
|
|
|
swith_button.setOnClickListener(new OnClickListener()
|
|
|
{
|
|
|
|
|
|
@@ -151,16 +150,14 @@ public final class CaptureActivity extends Activity implements
|
|
|
{
|
|
|
// inactivityTimer.onResume();
|
|
|
v.setTag("true");
|
|
|
- v.setBackgroundColor(getResources().getColor(
|
|
|
- R.color.message_success));
|
|
|
+ v.setBackground(getDrawable(R.drawable.ra_greenbg_round_corner_25));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
|
|
|
// inactivityTimer.onPause();
|
|
|
v.setTag("false");
|
|
|
- v.setBackgroundColor(getResources().getColor(
|
|
|
- R.color.message_fail));
|
|
|
+ v.setBackground(getDrawable(R.drawable.ra_redbg_round_corner_25));
|
|
|
}
|
|
|
|
|
|
}
|