From 437be2d5c4ee60f9c880369985eadde4a3a22957 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 16 May 2014 10:32:04 +0900 Subject: [PATCH] Refactor Emoji tab indicators to refer keyboard theme Bug: 14419121 Change-Id: I7086923fff153039c2d011bbccbfd04eb687a76a --- ...moji_category_tab_selected_holo_dark.9.png | Bin 145 -> 0 bytes .../emoji_category_tab_selected_ics.9.png | Bin 0 -> 137 bytes .../emoji_category_tab_selected_klp.9.png | Bin 0 -> 134 bytes ...emoji_category_tab_selected_lxx_dark.9.png | Bin 0 -> 137 bytes ...oji_category_tab_unselected_lxx_dark.9.png | Bin 0 -> 142 bytes ...moji_category_tab_selected_holo_dark.9.png | Bin 140 -> 0 bytes .../emoji_category_tab_selected_ics.9.png | Bin 0 -> 137 bytes .../emoji_category_tab_selected_klp.9.png | Bin 0 -> 132 bytes ...emoji_category_tab_selected_lxx_dark.9.png | Bin 0 -> 137 bytes ...oji_category_tab_unselected_lxx_dark.9.png | Bin 0 -> 141 bytes ...moji_category_tab_selected_holo_dark.9.png | Bin 148 -> 0 bytes .../emoji_category_tab_selected_ics.9.png | Bin 0 -> 138 bytes .../emoji_category_tab_selected_klp.9.png | Bin 0 -> 135 bytes .../emoji_category_tab_selected_lxx_dark.png | Bin 0 -> 138 bytes ...oji_category_tab_unselected_lxx_dark.9.png | Bin 0 -> 143 bytes ...moji_category_tab_selected_holo_dark.9.png | Bin 1030 -> 0 bytes .../emoji_category_tab_selected_ics.9.png | Bin 0 -> 113 bytes .../emoji_category_tab_selected_klp.9.png | Bin 0 -> 110 bytes ...emoji_category_tab_selected_lxx_dark.9.png | Bin 0 -> 113 bytes ...oji_category_tab_unselected_lxx_dark.9.png | Bin 0 -> 93 bytes java/res/layout/emoji_palettes_view.xml | 8 ++---- java/res/values/attrs.xml | 8 ++++++ java/res/values/colors.xml | 4 +-- java/res/values/themes-common.xml | 2 ++ java/res/values/themes-ics.xml | 11 +++++++ java/res/values/themes-klp.xml | 11 +++++++ java/res/values/themes-lxx-dark.xml | 11 +++++++ .../emoji/EmojiCategoryPageIndicatorView.java | 27 +++++++++++------- .../keyboard/emoji/EmojiLayoutParams.java | 13 +++++---- 29 files changed, 72 insertions(+), 23 deletions(-) delete mode 100644 java/res/drawable-hdpi/emoji_category_tab_selected_holo_dark.9.png create mode 100644 java/res/drawable-hdpi/emoji_category_tab_selected_ics.9.png create mode 100644 java/res/drawable-hdpi/emoji_category_tab_selected_klp.9.png create mode 100644 java/res/drawable-hdpi/emoji_category_tab_selected_lxx_dark.9.png create mode 100644 java/res/drawable-hdpi/emoji_category_tab_unselected_lxx_dark.9.png delete mode 100644 java/res/drawable-mdpi/emoji_category_tab_selected_holo_dark.9.png create mode 100644 java/res/drawable-mdpi/emoji_category_tab_selected_ics.9.png create mode 100644 java/res/drawable-mdpi/emoji_category_tab_selected_klp.9.png create mode 100644 java/res/drawable-mdpi/emoji_category_tab_selected_lxx_dark.9.png create mode 100644 java/res/drawable-mdpi/emoji_category_tab_unselected_lxx_dark.9.png delete mode 100644 java/res/drawable-xhdpi/emoji_category_tab_selected_holo_dark.9.png create mode 100644 java/res/drawable-xhdpi/emoji_category_tab_selected_ics.9.png create mode 100644 java/res/drawable-xhdpi/emoji_category_tab_selected_klp.9.png create mode 100644 java/res/drawable-xhdpi/emoji_category_tab_selected_lxx_dark.png create mode 100644 java/res/drawable-xhdpi/emoji_category_tab_unselected_lxx_dark.9.png delete mode 100644 java/res/drawable-xxhdpi/emoji_category_tab_selected_holo_dark.9.png create mode 100644 java/res/drawable-xxhdpi/emoji_category_tab_selected_ics.9.png create mode 100644 java/res/drawable-xxhdpi/emoji_category_tab_selected_klp.9.png create mode 100644 java/res/drawable-xxhdpi/emoji_category_tab_selected_lxx_dark.9.png create mode 100644 java/res/drawable-xxhdpi/emoji_category_tab_unselected_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/emoji_category_tab_selected_holo_dark.9.png b/java/res/drawable-hdpi/emoji_category_tab_selected_holo_dark.9.png deleted file mode 100644 index 84e63df17096db583ecc089e4fa47095eb90a134..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 145 zcmeAS@N?(olHy`uVBq!ia0vp^tU%1c!3HD^Kbl$tDVAa<&kznEsNqQI0P;BtJR*x3 z7`Qt@n9=;?>9s&XV^0^y5RRF>eU4lV3Ia^WU;Nj9?SFaUG`(t%fC2{r(F32}&Z#N7 mu%cDCV;7go$^UcSU1F1v6hA)sM}#_1JAGeBE`z75pUXO@geCyZemdKI;Vst0FMACng9R* diff --git a/java/res/drawable-mdpi/emoji_category_tab_selected_ics.9.png b/java/res/drawable-mdpi/emoji_category_tab_selected_ics.9.png new file mode 100644 index 0000000000000000000000000000000000000000..1731b46ad104c66da1262b30a0b48a607e89f72f GIT binary patch literal 137 zcmeAS@N?(olHy`uVBq!ia0vp^EI`c0!3HFsSlX8YDaPU;cPEB*=VV?2Ih+L^k;M!Q z+?^oIXnykaTA-kwr;B4q#hj!c|Nq-F3p8~64=`hHNpaX<$Rg3R-R>{{p@Kva#u8^n epwj>UnHkoumzVv}94ijwGI+ZBxvX=_6CIA2c literal 0 HcmV?d00001 diff --git a/java/res/drawable-mdpi/emoji_category_tab_selected_lxx_dark.9.png b/java/res/drawable-mdpi/emoji_category_tab_selected_lxx_dark.9.png new file mode 100644 index 0000000000000000000000000000000000000000..a08735cb461d32e7394eb625a4f944e60a078b00 GIT binary patch literal 137 zcmeAS@N?(olHy`uVBq!ia0vp^EI`c0!3HFsSlX8YDaPU;cPEB*=VV?2Ih+L^k;M!Q z+?^oIXnykaTA-kwr;B4q#hj!c|Nq-F3p8~64=`hHNpaX<$RhE|U-lpWp@Kva#u8^n epwj>UnHes|Do9ROXZi}{GI+ZBxvX@H oQDAuQ%DQNqsM^Wnym{=_s=|^d->(0%1!w|;r>mdKI;Vst03}T)>i_@% diff --git a/java/res/drawable-xhdpi/emoji_category_tab_selected_ics.9.png b/java/res/drawable-xhdpi/emoji_category_tab_selected_ics.9.png new file mode 100644 index 0000000000000000000000000000000000000000..11bc966b04289e74ffee645470bf4fd115fe5971 GIT binary patch literal 138 zcmeAS@N?(olHy`uVBq!ia0vp^Y(UJ#0V1dK=^Fzn#^NA%Cx&(BWL^R}oCO|{#S9GG zogmC;e)9BMprF2|i(^Q|oTMNB|JySQ{Bb`PV93VN$@MQdvgu&O>&yR7Na*>ha>mH9 e0M-8g&&;4I;<0qY^N>s+m%-E3&t;ucLK6VL5+>0A literal 0 HcmV?d00001 diff --git a/java/res/drawable-xhdpi/emoji_category_tab_selected_klp.9.png b/java/res/drawable-xhdpi/emoji_category_tab_selected_klp.9.png new file mode 100644 index 0000000000000000000000000000000000000000..5e8549bdd68130ac45fe90aae2db471432f2e5ee GIT binary patch literal 135 zcmeAS@N?(olHy`uVBq!ia0vp^Y(UJ#0V1dK=^Fzn#^NA%Cx&(BWL^R}oCO|{#S9GG zogmC;e)9BMprDSYi(^Q|oTMNB|JySQ{Bb`PV93VN$@MQdk|{^p$iXAnooPBdBT(W0 b|I7@h{zotMTJm2A$YtbP0l+XkK@*pG| literal 0 HcmV?d00001 diff --git a/java/res/drawable-xhdpi/emoji_category_tab_selected_lxx_dark.png b/java/res/drawable-xhdpi/emoji_category_tab_selected_lxx_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..65a54b81391b485a9714e49e383679167e320dda GIT binary patch literal 138 zcmeAS@N?(olHy`uVBq!ia0vp^Y(UJ#0V1dK=^Fzn#^NA%Cx&(BWL^R}oCO|{#S9GG zogmC;e)9BMprF2|i(^Q|oTMNB|JySQ{Bb`PV93VN$@MQdvT5PJD-ZvlkkIp0<&2SI e0jmA~pP3=l+h=Og(x{0*E`z75pUXO@geCybASX8f literal 0 HcmV?d00001 diff --git a/java/res/drawable-xhdpi/emoji_category_tab_unselected_lxx_dark.9.png b/java/res/drawable-xhdpi/emoji_category_tab_unselected_lxx_dark.9.png new file mode 100644 index 0000000000000000000000000000000000000000..666b35471f739f84e2e7924cb91375b11cf3c143 GIT binary patch literal 143 zcmeAS@N?(olHy`uVBq!ia0vp^Y(UJ#0V1dK=^Fzn#^NA%Cx&(BWL^R}oCO|{#S9GG zogmC;e)9BMprDDTi(^Q|oTMNB|JySQ{Bb`PV93VN$@MQdvdQu6iAVNEZQjA2P5}V| ihnp1)f$ACl|7T|4i_>?k_|?}1;(NOKxvX(j3Du z^Nkg&Mb}ySo|~Pa-wU_zJ)z42vAd*=`()^)h^Ym*hd?9p)=>+2!S?+RXo+E_`eCO_ zy6#Qg#}VfhHe4Ph6wNS8%X#AY8;F1&S`TA`{rUP03&Ox)@5nB6lR6rND?2G_@2qzG zoejSlu*=uLQm#{i2oVqD(Po_KxxtQjb-FLEc@~UJ$cDilIMsEVppH`nWDb^ns6e0y zoFG+HRb2!k6d(^pUJ%QIs!O5{As9a_RZD}u-m;vr7Cjm4fRIGz`QdQL4J8hz>%35{ zRtpYMEK`eewjC2MFUMJF!eF7yPs4urwhUa)598uo zl;_hz5(OT9Mp wY46>2=IqS$V)OFTw?95!`F6%Jcc;&&e0_HD^KLPj4SUskVXi&;2eYm|!vFvP diff --git a/java/res/drawable-xxhdpi/emoji_category_tab_selected_ics.9.png b/java/res/drawable-xxhdpi/emoji_category_tab_selected_ics.9.png new file mode 100644 index 0000000000000000000000000000000000000000..b13ee2b6a58dc55ddef802cdb83f7effb32d7d71 GIT binary patch literal 113 zcmeAS@N?(olHy`uVBq!ia0vp^96-#+!3HFS!eXZZDaPU;cPEB*=VV?2Ioh5sjv*Cu zk`fvk{#zKt2#No&PZ2SY$glk+FWsgsEyN}9!9@(H?*D&gh6{}~Gg~>Y=mEJ5p00i_ I>zopr0ERUkh5!Hn literal 0 HcmV?d00001 diff --git a/java/res/drawable-xxhdpi/emoji_category_tab_selected_klp.9.png b/java/res/drawable-xxhdpi/emoji_category_tab_selected_klp.9.png new file mode 100644 index 0000000000000000000000000000000000000000..c81e651ddef1e45c6722424a80009b80435aec6f GIT binary patch literal 110 zcmeAS@N?(olHy`uVBq!ia0vp^96-#+!3HFS!eXZZDaPU;cPEB*=VV?2IU1fWjv*Cu zk`fvk{#zKt2#No&PZ2TrbDUA&R9h1ho6SU4prZf(nHjj9mPab>Fgy(8GI+ZBxvXF!$q5Y&|1At+gv5W? rr-&G=kc|9uyzSwswic$EiL4Bl`2twmKgj$As%P+Y^>bP0l+XkK?Bp6} literal 0 HcmV?d00001 diff --git a/java/res/layout/emoji_palettes_view.xml b/java/res/layout/emoji_palettes_view.xml index d764caa91..e2933f96f 100644 --- a/java/res/layout/emoji_palettes_view.xml +++ b/java/res/layout/emoji_palettes_view.xml @@ -41,11 +41,9 @@ android:id="@android:id/tabs" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@drawable/emoji_category_tab_selected_holo_dark" android:divider="@null" android:tabStripEnabled="true" - android:tabStripLeft="@drawable/emoji_category_tab_unselected_holo_dark" - android:tabStripRight="@drawable/emoji_category_tab_unselected_holo_dark" /> + style="?attr/emojiTabWidgetStyle" /> + android:layout_height="2dip" + style="?attr/emojiCategoryPageIndicatorViewStyle" /> + + + + @@ -181,6 +185,10 @@ + + + + diff --git a/java/res/values/colors.xml b/java/res/values/colors.xml index 12cb71f2e..0eee08de2 100644 --- a/java/res/values/colors.xml +++ b/java/res/values/colors.xml @@ -34,6 +34,7 @@ #FFC0C0C0 #80000000 #C0000000 + #111111 #FFF0F0F0 #D8F0F0F0 @@ -53,12 +54,11 @@ #263238 #384248 #C0000000 + #263238 #FFEBEBEB #FF707070 @android:color/holo_blue_light @android:color/background_light #FFCCCCCC - #FF000000 - #80FFFFFF diff --git a/java/res/values/themes-common.xml b/java/res/values/themes-common.xml index df26fb3b4..c5d3f55a1 100644 --- a/java/res/values/themes-common.xml +++ b/java/res/values/themes-common.xml @@ -110,6 +110,8 @@ + + + + + +