summaryrefslogtreecommitdiffstats
path: root/chips/res
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2011-05-27 16:38:56 -0700
committerMindy Pereira <mindyp@google.com>2011-05-27 17:22:34 -0700
commit078509f1fd42ec04b46565ecc26f4f527b277c5c (patch)
tree0dcde085fe63b74b4aed7683359aeb22d03f2f39 /chips/res
parentc88aedd2565b44c6369402426e51dca86b2c6a1e (diff)
downloadandroid_frameworks_ex-078509f1fd42ec04b46565ecc26f4f527b277c5c.tar.gz
android_frameworks_ex-078509f1fd42ec04b46565ecc26f4f527b277c5c.tar.bz2
android_frameworks_ex-078509f1fd42ec04b46565ecc26f4f527b277c5c.zip
Back to static library.
Give the library dimensions that the apps can use. Change-Id: If55883a0f599baac3e4f9122620fc01b376fb512
Diffstat (limited to 'chips/res')
-rw-r--r--chips/res/drawable/chip_background.xml24
-rw-r--r--chips/res/drawable/chip_background_normal.xml22
-rw-r--r--chips/res/drawable/chip_background_selected.xml22
-rw-r--r--chips/res/values/attrs.xml21
-rw-r--r--chips/res/values/colors.xml19
-rw-r--r--chips/res/values/dimen.xml20
6 files changed, 128 insertions, 0 deletions
diff --git a/chips/res/drawable/chip_background.xml b/chips/res/drawable/chip_background.xml
new file mode 100644
index 0000000..ccec0b2
--- /dev/null
+++ b/chips/res/drawable/chip_background.xml
@@ -0,0 +1,24 @@
+<?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.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:exitFadeDuration="@android:integer/config_mediumAnimTime">
+ <item android:state_activated="true" android:drawable="@drawable/chip_background_selected" />
+ <item android:state_pressed="true" android:drawable="@drawable/chip_background_selected" />
+ <item android:state_focused="true" android:drawable="@drawable/chip_background_selected" />
+ <item android:state_selected="true" android:drawable="@drawable/chip_background_selected" />
+ <item android:drawable="@drawable/chip_background_normal" />
+</selector>
diff --git a/chips/res/drawable/chip_background_normal.xml b/chips/res/drawable/chip_background_normal.xml
new file mode 100644
index 0000000..69a9e5a
--- /dev/null
+++ b/chips/res/drawable/chip_background_normal.xml
@@ -0,0 +1,22 @@
+<?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="#b8ccdc"/>
+ <corners android:radius="4.0dp" />
+ <padding android:left="6dp" android:right="6dp" android:top="2dp"
+ android:bottom="2dp"/>
+</shape>
diff --git a/chips/res/drawable/chip_background_selected.xml b/chips/res/drawable/chip_background_selected.xml
new file mode 100644
index 0000000..e6c127c
--- /dev/null
+++ b/chips/res/drawable/chip_background_selected.xml
@@ -0,0 +1,22 @@
+<?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="#DC2E1A"/>
+ <corners android:radius="4.0dp" />
+ <padding android:left="6dp" android:right="6dp" android:top="2dp"
+ android:bottom="2dp"/>
+</shape>
diff --git a/chips/res/values/attrs.xml b/chips/res/values/attrs.xml
new file mode 100644
index 0000000..e6ca373
--- /dev/null
+++ b/chips/res/values/attrs.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.
+-->
+
+<resources>
+ <add-resource type="dimen" name="chip_padding"></add-resource>
+ <add-resource type="dimen" name="chip_popup_offset"></add-resource>
+ <add-resource type="color" name="default_chip_background"></add-resource>
+</resources> \ No newline at end of file
diff --git a/chips/res/values/colors.xml b/chips/res/values/colors.xml
new file mode 100644
index 0000000..5a11dd9
--- /dev/null
+++ b/chips/res/values/colors.xml
@@ -0,0 +1,19 @@
+<?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.
+-->
+
+<resources>
+ <color name="default_chip_background">#77CCCCCC</color>
+</resources> \ No newline at end of file
diff --git a/chips/res/values/dimen.xml b/chips/res/values/dimen.xml
new file mode 100644
index 0000000..4beccf5
--- /dev/null
+++ b/chips/res/values/dimen.xml
@@ -0,0 +1,20 @@
+<?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.
+-->
+
+<resources>
+ <dimen name="chip_padding">10dip</dimen>
+ <dimen name="chip_popup_offset">11dip</dimen>
+</resources> \ No newline at end of file