Fix 5133608 [UI] Details should be displayed as a system dialog in phone UI
Fix 5132798 [UI] Details popup on tablet is incorrectly placed and should not have x icon to close
Fix 5199822 Long press and select "detail" shows details of another item
Change-Id: I0e992ded8a154edb1c7a81b75d0461d5bf309f31
diff --git a/res/drawable-hdpi/ic_lockscreen_chevron_up.png b/res/drawable-hdpi/ic_lockscreen_chevron_up.png
new file mode 100644
index 0000000..4ffa833
--- /dev/null
+++ b/res/drawable-hdpi/ic_lockscreen_chevron_up.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_lockscreen_chevron_up.png b/res/drawable-mdpi/ic_lockscreen_chevron_up.png
new file mode 100644
index 0000000..35aca4e
--- /dev/null
+++ b/res/drawable-mdpi/ic_lockscreen_chevron_up.png
Binary files differ
diff --git a/res/layout/details.xml b/res/layout/details.xml
new file mode 100644
index 0000000..dfda0ee
--- /dev/null
+++ b/res/layout/details.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2006 The Android Open Source 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.
+-->
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@android:id/text1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:gravity="left"
+/>
diff --git a/res/values-xlarge/bool.xml b/res/values-xlarge/bool.xml
new file mode 100644
index 0000000..cffa691
--- /dev/null
+++ b/res/values-xlarge/bool.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <bool name="dialog_details_view">false</bool>
+</resources>
\ No newline at end of file
diff --git a/res/values/bool.xml b/res/values/bool.xml
new file mode 100644
index 0000000..cef32a2
--- /dev/null
+++ b/res/values/bool.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <bool name="dialog_details_view">true</bool>
+</resources>
\ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index cb8ce6d..9f6cce8 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -97,6 +97,8 @@
<string name="slideshow">Slideshow</string>
<string name="details">Details</string>
+ <string name="details_title">%1$d of %2$d items:</string>
+ <string name="close">Close</string>
<!-- Title of a menu item to switch from Gallery to Camera app [CHAR LIMIT=30] -->
<string name="switch_to_camera">Switch to Camera</string>