diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-09-16 22:44:42 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-09-16 22:48:49 +0200 |
commit | 1b44332feaa6bf30bd5775322edd2075907cb736 (patch) | |
tree | 3faeedfb9382e8d52e4f7822e4ec39696e1c184e | |
parent | 6d89bbcf739a41e0956da64589a67e244840775e (diff) | |
download | packages_apps_Mms-1b44332feaa6bf30bd5775322edd2075907cb736.zip packages_apps_Mms-1b44332feaa6bf30bd5775322edd2075907cb736.tar.gz packages_apps_Mms-1b44332feaa6bf30bd5775322edd2075907cb736.tar.bz2 |
Mms: Fix QuickMessage mdpi/hdpi layouts
Fix https://jira.cyanogenmod.org/secure/attachment/12587/Screenshot_2013-09-15-22-59-37.jpg
Change-Id: I42131b0f997edb8f3ddbec758d861cd70f816b16
JIRA: CYAN-1605
Issue: https://jira.cyanogenmod.org/browse/CYAN-1605
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
-rw-r--r-- | res/layout/quickmessage_content_dark.xml | 2 | ||||
-rw-r--r-- | res/layout/quickmessage_content_light.xml | 2 | ||||
-rw-r--r-- | res/values-hdpi/cm_dimens.xml | 2 | ||||
-rw-r--r-- | res/values-hdpi/cm_integers.xml | 23 | ||||
-rw-r--r-- | res/values-mdpi/cm_integers.xml | 23 | ||||
-rw-r--r-- | res/values-xhdpi/cm_integers.xml | 23 |
6 files changed, 72 insertions, 3 deletions
diff --git a/res/layout/quickmessage_content_dark.xml b/res/layout/quickmessage_content_dark.xml index 3a40bc0..2627a60 100644 --- a/res/layout/quickmessage_content_dark.xml +++ b/res/layout/quickmessage_content_dark.xml @@ -140,7 +140,7 @@ android:textColor="?android:attr/textColorPrimary" android:textColorHint="?android:attr/textColorTertiary" android:textCursorDrawable = "@null" - android:maxLines="3" + android:maxLines="@integer/qm_message_response_max_lines" android:imeOptions="actionSend|flagNoEnterAction" android:maxLength="2000" /> diff --git a/res/layout/quickmessage_content_light.xml b/res/layout/quickmessage_content_light.xml index 0b876a6..e3e9053 100644 --- a/res/layout/quickmessage_content_light.xml +++ b/res/layout/quickmessage_content_light.xml @@ -140,7 +140,7 @@ android:textColor="?android:attr/textColorPrimaryInverse" android:textColorHint="?android:attr/textColorTertiary" android:textCursorDrawable = "@null" - android:maxLines="3" + android:maxLines="@integer/qm_message_response_max_lines" android:imeOptions="actionSend|flagNoEnterAction" android:maxLength="2000" /> diff --git a/res/values-hdpi/cm_dimens.xml b/res/values-hdpi/cm_dimens.xml index 9ba4ec7..441034e 100644 --- a/res/values-hdpi/cm_dimens.xml +++ b/res/values-hdpi/cm_dimens.xml @@ -18,7 +18,7 @@ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- QuickMessage --> - <dimen name="qm_message_height">160dp</dimen> + <dimen name="qm_message_height">185dp</dimen> <dimen name="qm_dialog_button_bar_height">40dip</dimen> </resources> diff --git a/res/values-hdpi/cm_integers.xml b/res/values-hdpi/cm_integers.xml new file mode 100644 index 0000000..f87834f --- /dev/null +++ b/res/values-hdpi/cm_integers.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The CyanogenMod 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 xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <!-- QuickMessage --> + <integer name="qm_message_response_max_lines">2</integer> + +</resources> diff --git a/res/values-mdpi/cm_integers.xml b/res/values-mdpi/cm_integers.xml new file mode 100644 index 0000000..f87834f --- /dev/null +++ b/res/values-mdpi/cm_integers.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The CyanogenMod 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 xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <!-- QuickMessage --> + <integer name="qm_message_response_max_lines">2</integer> + +</resources> diff --git a/res/values-xhdpi/cm_integers.xml b/res/values-xhdpi/cm_integers.xml new file mode 100644 index 0000000..f7de3f5 --- /dev/null +++ b/res/values-xhdpi/cm_integers.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The CyanogenMod 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 xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <!-- QuickMessage --> + <integer name="qm_message_response_max_lines">3</integer> + +</resources> |