Permalink
Browse files

Adding the default android button as the button drawable

  • Loading branch information...
1 parent e2c6e19 commit cee6338b85192282f9fb3a09510e6bc247ece17c @gnorsilva committed Nov 1, 2011
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_window_focused="false" android:state_enabled="true"
+ android:drawable="@drawable/btn_default_normal" />
+ <item android:state_window_focused="false" android:state_enabled="false"
+ android:drawable="@drawable/btn_default_normal_disable" />
+ <item android:state_pressed="true"
+ android:drawable="@drawable/btn_default_pressed" />
+ <item android:state_focused="true" android:state_enabled="true"
+ android:drawable="@drawable/btn_default_selected" />
+ <item android:state_enabled="true"
+ android:drawable="@drawable/btn_default_normal" />
+ <item android:state_focused="true"
+ android:drawable="@drawable/btn_default_normal_disable_focused" />
+ <item
+ android:drawable="@drawable/btn_default_normal_disable" />
+</selector>
View
@@ -62,14 +62,16 @@
android:onClick="generalOnClick"
android:id="@+id/btn_standard"
android:text="standard"
- android:textColor="@color/green" />
+ android:textColor="@color/green"
+ android:background="@drawable/btn_default" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/btn_singletask"
android:onClick="generalOnClick"
android:id="@+id/btn_singletop"
+ android:background="@drawable/btn_default"
android:text="singleTop"
android:textColor="@color/blue" />
@@ -79,6 +81,7 @@
android:layout_above="@+id/btn_singleInstance"
android:onClick="generalOnClick"
android:id="@+id/btn_singletask"
+ android:background="@drawable/btn_default"
android:text="singleTask"
android:textColor="#ff6600" />
@@ -88,6 +91,7 @@
android:layout_alignParentBottom="true"
android:onClick="generalOnClick"
android:id="@+id/btn_singleInstance"
+ android:background="@drawable/btn_default"
android:text="singleInstance"
android:textColor="@color/red" />

0 comments on commit cee6338

Please sign in to comment.