diff options
author | Danny Baumann <dannybaumann@web.de> | 2016-11-30 08:53:24 +0100 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2016-12-23 00:35:02 -0800 |
commit | e600930eb8be682be31e0ae3d2f667b2369bee68 (patch) | |
tree | 66a38d698b5c9c43e3e9fdb2b25319e5de1a32db /res | |
parent | a62bda4c47b2aeb7992a5eb33a50f09c6d7826bf (diff) | |
download | android_packages_apps_Snap-e600930eb8be682be31e0ae3d2f667b2369bee68.tar.gz android_packages_apps_Snap-e600930eb8be682be31e0ae3d2f667b2369bee68.tar.bz2 android_packages_apps_Snap-e600930eb8be682be31e0ae3d2f667b2369bee68.zip |
Clean up module switcher.
- Get rid of Holo highlight color
- Don't hardcode pixel sizes
- Simplify code
Change-Id: I3695b04e99308c266537eb9b837d0b65793a33f7
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-land/switcher_popup.xml | 1 | ||||
-rw-r--r-- | res/layout-port/switcher_popup.xml | 1 | ||||
-rw-r--r-- | res/layout/switcher_popup_item.xml | 21 |
3 files changed, 23 insertions, 0 deletions
diff --git a/res/layout-land/switcher_popup.xml b/res/layout-land/switcher_popup.xml index 1c552c9e0..247df474f 100644 --- a/res/layout-land/switcher_popup.xml +++ b/res/layout-land/switcher_popup.xml @@ -25,4 +25,5 @@ android:paddingRight="8dip" android:paddingTop="16dip" android:paddingBottom="16dip" + android:elevation="4dp" android:background="@color/black" /> diff --git a/res/layout-port/switcher_popup.xml b/res/layout-port/switcher_popup.xml index 90a64aecc..15647624e 100644 --- a/res/layout-port/switcher_popup.xml +++ b/res/layout-port/switcher_popup.xml @@ -25,4 +25,5 @@ android:paddingRight="16dip" android:paddingTop="8dip" android:paddingBottom="8dip" + android:elevation="4dp" android:background="@color/black" /> diff --git a/res/layout/switcher_popup_item.xml b/res/layout/switcher_popup_item.xml new file mode 100644 index 000000000..afb83a11a --- /dev/null +++ b/res/layout/switcher_popup_item.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2016 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. +--> +<com.android.camera.ui.RotateImageView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="@dimen/switcher_size" + android:layout_height="@dimen/switcher_size" + android:scaleType="center" + android:background="?android:attr/selectableItemBackground" /> |