diff options
author | Yuku on yuku4 <yukuku@gmail.com> | 2012-04-16 16:15:06 +0800 |
---|---|---|
committer | Yuku on yuku4 <yukuku@gmail.com> | 2012-04-16 16:15:06 +0800 |
commit | e0119c9617ba0f16de8e6619e5a08afde20f5ac1 (patch) | |
tree | 413d68b770207c90530e276e2232874dd291740f /core/res | |
parent | 3d7f0cb3d9724eb4a45611127e0986538e838964 (diff) | |
download | frameworks_base-e0119c9617ba0f16de8e6619e5a08afde20f5ac1.zip frameworks_base-e0119c9617ba0f16de8e6619e5a08afde20f5ac1.tar.gz frameworks_base-e0119c9617ba0f16de8e6619e5a08afde20f5ac1.tar.bz2 |
Remove deprecation on android:enabled attribute.
The android:enabled was never deprecated and replaced by
android:state_enabled as it was mentioned in the documentation.
The attribute android:enabled when applied to a TextView (or its
descendants) still works until now. In fact that's the way to
disable widgets from layout XMLs.
The deprecation made ADT and lint suggest users not to use this
attribute.
Change-Id: I5e7d7060d9e79a04342ebc723d7937b9bc12a018
Signed-off-by: Yuku on yuku4 <yukuku@gmail.com>
Diffstat (limited to 'core/res')
-rwxr-xr-x | core/res/res/values/attrs.xml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index af59198..c46283f 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -3021,7 +3021,11 @@ inputType attributes are found, the inputType flags will override the value of singleLine.) } --> <attr name="singleLine" format="boolean" /> - <!-- Specifies whether the TextView is enabled or not. {@deprecated Use state_enabled instead}. --> + <!-- Specifies whether the widget is enabled. The interpretation of the enabled state varies by subclass. + For example, a non-enabled EditText prevents the user from editing the contained text, and + a non-enabled Button prevents the user from tapping the button. + The appearance of enabled and non-enabled widgets may differ, if the drawables referenced + from evaluating state_enabled differ. --> <attr name="enabled" format="boolean" /> <!-- If the text is selectable, select it all when the view takes focus instead of moving the cursor to the start or end. --> @@ -3052,7 +3056,7 @@ <!-- Input is numeric. --> <flag name="integer" value="0x01" /> <!-- Input is numeric, with sign allowed. --> - <flag name="signed" value="0x003" /> + <flag name="signed" value="0x03" /> <!-- Input is numeric, with decimals allowed. --> <flag name="decimal" value="0x05" /> </attr> |