diff options
| author | Mindy Pereira <mindyp@google.com> | 2011-05-27 16:38:56 -0700 |
|---|---|---|
| committer | Mindy Pereira <mindyp@google.com> | 2011-05-27 17:22:34 -0700 |
| commit | efcac0cbb3efc645cd6cf1cb1e2431e1bd2b2d2a (patch) | |
| tree | 1ff1b4eef036b9be7bd09b1cb9abde414b9d4939 /res/drawable | |
| parent | 86aec375559065e0dad632c609a3c27d2907b84d (diff) | |
| download | android_frameworks_opt_chips-efcac0cbb3efc645cd6cf1cb1e2431e1bd2b2d2a.tar.gz android_frameworks_opt_chips-efcac0cbb3efc645cd6cf1cb1e2431e1bd2b2d2a.tar.bz2 android_frameworks_opt_chips-efcac0cbb3efc645cd6cf1cb1e2431e1bd2b2d2a.zip | |
Back to static library.
Give the library dimensions that the apps can use.
Change-Id: If55883a0f599baac3e4f9122620fc01b376fb512
Diffstat (limited to 'res/drawable')
| -rw-r--r-- | res/drawable/chip_background.xml | 24 | ||||
| -rw-r--r-- | res/drawable/chip_background_normal.xml | 22 | ||||
| -rw-r--r-- | res/drawable/chip_background_selected.xml | 22 |
3 files changed, 68 insertions, 0 deletions
diff --git a/res/drawable/chip_background.xml b/res/drawable/chip_background.xml new file mode 100644 index 0000000..ccec0b2 --- /dev/null +++ b/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/res/drawable/chip_background_normal.xml b/res/drawable/chip_background_normal.xml new file mode 100644 index 0000000..69a9e5a --- /dev/null +++ b/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/res/drawable/chip_background_selected.xml b/res/drawable/chip_background_selected.xml new file mode 100644 index 0000000..e6c127c --- /dev/null +++ b/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> |
