summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJin Cao <jinyan@google.com>2014-08-17 15:00:50 -0700
committerJin Cao <jinyan@google.com>2014-08-18 16:18:22 -0700
commit6c2a016fb00482339dc66b93822042f9f9e2424f (patch)
tree3ba7457a730cb2f2ac9311d8425b194af050dc50 /res
parentc609278f2650f8d74ff9c2e3b1546813560438d4 (diff)
downloadchips-6c2a016fb00482339dc66b93822042f9f9e2424f.tar.gz
[Quantum chips] change chips into ReplacementSpan
There seems to be an issue with ImageSpan where it sets the default text cursor size to the height of the ImageSpan. In this CL I changed the chips to extend ReplacementSpan and simply draw the chip ourselves by overriding the draw method. b/16700424 Change-Id: I66a8bf3068e24a669121c7323323fd03138ca7b3
Diffstat (limited to 'res')
-rw-r--r--res/values/dimen.xml2
-rw-r--r--res/values/styles.xml1
2 files changed, 1 insertions, 2 deletions
diff --git a/res/values/dimen.xml b/res/values/dimen.xml
index f2b71df..042021d 100644
--- a/res/values/dimen.xml
+++ b/res/values/dimen.xml
@@ -23,7 +23,7 @@
<dimen name="chip_padding">8dp</dimen>
<dimen name="chip_height">32dp</dimen>
<dimen name="chip_text_size">14sp</dimen>
- <dimen name="line_spacing_extra">4dp</dimen>
+ <dimen name="line_spacing_extra">3dp</dimen>
<integer name="chips_max_lines">-1</integer>
<!-- dropdown -->
diff --git a/res/values/styles.xml b/res/values/styles.xml
index a528934..2e7d6b4 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -21,7 +21,6 @@
<item name="android:background">@null</item>
<item name="android:inputType">textEmailAddress|textMultiLine</item>
<item name="android:minHeight">@dimen/chip_height</item>
- <item name="android:lineSpacingExtra">@dimen/line_spacing_extra</item>
<item name="android:popupBackground">@null</item>
<item name="android:textAlignment" tools:ignore="NewApi">viewStart</item>
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>