diff options
author | Clark Scheff <clark@cyngn.com> | 2014-08-27 15:27:16 -0700 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2014-08-27 15:59:03 -0700 |
commit | 1bef8761508a7f8428edba5d29fec6f1c994c706 (patch) | |
tree | 7a5c38ef2516ba361501accef64a3e1a85289bbe | |
parent | bc73659ae30efa5a60c5643a7448eba6ae966ae3 (diff) | |
download | packages_apps_ThemeChooser-1bef8761508a7f8428edba5d29fec6f1c994c706.zip packages_apps_ThemeChooser-1bef8761508a7f8428edba5d29fec6f1c994c706.tar.gz packages_apps_ThemeChooser-1bef8761508a7f8428edba5d29fec6f1c994c706.tar.bz2 |
Adjust dimensions for HDPI devices
Change-Id: I7ef12d853c080ee24b9240564f002ca9279498f7
-rw-r--r-- | res/layout/shop_themes.xml | 2 | ||||
-rw-r--r-- | res/values-hdpi/dimens.xml | 24 | ||||
-rw-r--r-- | res/values-xhdpi/dimens.xml | 24 | ||||
-rw-r--r-- | res/values/dimens.xml | 2 |
4 files changed, 51 insertions, 1 deletions
diff --git a/res/layout/shop_themes.xml b/res/layout/shop_themes.xml index bc68e48..b7b86d6 100644 --- a/res/layout/shop_themes.xml +++ b/res/layout/shop_themes.xml @@ -12,7 +12,7 @@ android:id="@+id/shop_themes" android:layout_width="140dp" android:layout_height="44dp" - android:layout_marginBottom="24dp" + android:layout_marginBottom="@dimen/shop_themes_margin_bottom" android:layout_gravity="center_horizontal" android:textSize="14sp" android:textColor="@color/shop_themes_text_color" diff --git a/res/values-hdpi/dimens.xml b/res/values-hdpi/dimens.xml new file mode 100644 index 0000000..9c88818 --- /dev/null +++ b/res/values-hdpi/dimens.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (C) 2014 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> + + <!-- Distance from top of screen to the collapsed theme preview --> + <dimen name="collapsed_theme_page_padding_top">2dp</dimen> + + <dimen name="shop_themes_margin_bottom">8dp</dimen> + +</resources> diff --git a/res/values-xhdpi/dimens.xml b/res/values-xhdpi/dimens.xml new file mode 100644 index 0000000..df7a22f --- /dev/null +++ b/res/values-xhdpi/dimens.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (C) 2014 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> + + <!-- Distance from top of screen to the collapsed theme preview --> + <dimen name="collapsed_theme_page_padding_top">43dp</dimen> + + <dimen name="shop_themes_margin_bottom">24dp</dimen> + +</resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 2d7a5e1..5dd290d 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -77,4 +77,6 @@ <dimen name="system_bar_height">@*android:dimen/system_bar_height</dimen> <dimen name="expand_collapse_child_offset">12dp</dimen> + <dimen name="shop_themes_margin_bottom">24dp</dimen> + </resources> |