summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2011-12-16 14:30:34 -0800
committerMindy Pereira <mindyp@google.com>2011-12-16 14:30:34 -0800
commit22faaa6f1eacb6ae69e4fd5d97aeeefc77973cd1 (patch)
tree4c539d65588a3925ae7b58b1745bb4a1b90a25cd /res/values
parent52c441e2c03e0f48572348953b985a4bf989c057 (diff)
downloadandroid_frameworks_opt_chips-22faaa6f1eacb6ae69e4fd5d97aeeefc77973cd1.tar.gz
android_frameworks_opt_chips-22faaa6f1eacb6ae69e4fd5d97aeeefc77973cd1.tar.bz2
android_frameworks_opt_chips-22faaa6f1eacb6ae69e4fd5d97aeeefc77973cd1.zip
Add styleable attributes to chips. This first one is a test.
We will need this in order to be able to support both dark and light themes for chips fields. If nothing is specified, just falls back to the default background. Change-Id: Ibc0e5391969bfee1615b14bafe83f065d81c6331
Diffstat (limited to 'res/values')
-rw-r--r--res/values/attrs.xml13
1 files changed, 3 insertions, 10 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 6a09b69..2dd1623 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -13,15 +13,8 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
<resources>
- <add-resource type="dimen" name="chip_padding" />
- <add-resource type="dimen" name="chip_height" />
- <add-resource type="dimen" name="chip_text_size" />
- <add-resource type="color" name="default_chip_background" />
- <add-resource type="color" name="chip_selected" />
- <add-resource type="string" name="more_string" />
- <add-resource type="string" name="chips_waiting_for_directory_result" />
- <add-resource type="string" name="copy" />
- <add-resource type="style" name="RecipientEditTextView" />
+ <declare-styleable name="RecipientEditTextView">
+ <attr name="chipBackground" format="reference" />
+ </declare-styleable>
</resources>