summaryrefslogtreecommitdiffstats
path: root/chips/res
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2011-06-09 20:05:32 -0700
committerMindy Pereira <mindyp@google.com>2011-06-10 11:07:06 -0700
commit045e80b59ef5e9a709b6e5843d2301a02e0872f2 (patch)
tree3282a21aafb92276a0bf504c1c3ce354b86616c6 /chips/res
parent8684974e4befb4c9dcc21c995c4ff3af7103ab10 (diff)
downloadandroid_frameworks_ex-045e80b59ef5e9a709b6e5843d2301a02e0872f2.tar.gz
android_frameworks_ex-045e80b59ef5e9a709b6e5843d2301a02e0872f2.tar.bz2
android_frameworks_ex-045e80b59ef5e9a709b6e5843d2301a02e0872f2.zip
Added invalid chips, fixed comments.
Add an invalid background for chips that cannot be validated. If there is a validator, and a chip is invalid, set it to a red background for now. Note: I left the old method for setChipDimensions so that I don't break Gmail. Updated comments in the code to be clearer. Change-Id: I01553cf0c3b3a6c7c59da5016d32be364535f7f2
Diffstat (limited to 'chips/res')
-rw-r--r--chips/res/drawable/chip_background_invalid.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/chips/res/drawable/chip_background_invalid.xml b/chips/res/drawable/chip_background_invalid.xml
new file mode 100644
index 0000000..39dd246
--- /dev/null
+++ b/chips/res/drawable/chip_background_invalid.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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.
+-->
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <solid android:color="#ff0000"/>
+ <padding android:left="6dp" android:right="6dp" android:top="2dp"
+ android:bottom="2dp"/>
+</shape>