summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2013-06-19 16:37:06 -0400
committerChris Wren <cwren@android.com>2013-06-19 16:40:06 -0400
commit7170112b066301a1fc302a159aa8857a70f83883 (patch)
treea6277b7c73745ee8da12930783aea28a30a789b6 /res
parent23ab8f3366a5eeecd36c5f489a47eb6b8f03bc56 (diff)
downloadandroid_packages_screensavers_PhotoTable-7170112b066301a1fc302a159aa8857a70f83883.tar.gz
android_packages_screensavers_PhotoTable-7170112b066301a1fc302a159aa8857a70f83883.tar.bz2
android_packages_screensavers_PhotoTable-7170112b066301a1fc302a159aa8857a70f83883.zip
quick fix for jank on touch devices.
optimizations for notouch devices caused jank on touch. The best solution is difficult, so for the time being, let's just disable that optimiztion on touch devices. Bug: 9462757 Change-Id: I4e574eb23d0764267e5b5efea01230feba5114d1
Diffstat (limited to 'res')
-rw-r--r--res/layout-sw800dp/table.xml9
-rw-r--r--res/layout/table.xml9
-rw-r--r--res/values-land-notouch/config.xml2
-rw-r--r--res/values-sw800dp/config.xml9
-rw-r--r--res/values/config.xml3
5 files changed, 31 insertions, 1 deletions
diff --git a/res/layout-sw800dp/table.xml b/res/layout-sw800dp/table.xml
index e063cd5..c40ee48 100644
--- a/res/layout-sw800dp/table.xml
+++ b/res/layout-sw800dp/table.xml
@@ -23,6 +23,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent" >
+ <View
+ android:id="@+id/scrim"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@+drawable/table"
+ android:alpha="0"
+ android:visibility="gone"
+ />
+
<FrameLayout
android:id="@+id/stageleft"
android:layout_width="match_parent"
diff --git a/res/layout/table.xml b/res/layout/table.xml
index 7cdb51a..10622f5 100644
--- a/res/layout/table.xml
+++ b/res/layout/table.xml
@@ -26,6 +26,15 @@
android:background="@+drawable/table"
android:focusable="true" >
+ <View
+ android:id="@+id/scrim"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@+drawable/table"
+ android:alpha="0"
+ android:visibility="gone"
+ />
+
<FrameLayout
android:id="@+id/stageleft"
android:layout_width="match_parent"
diff --git a/res/values-land-notouch/config.xml b/res/values-land-notouch/config.xml
index d125dd1..5e088e4 100644
--- a/res/values-land-notouch/config.xml
+++ b/res/values-land-notouch/config.xml
@@ -27,4 +27,6 @@
<!-- Duration in milliseconds for the pickup animation. -->
<integer name="photo_pickup_duration">1500</integer>
+ <!-- Enable hardware layer optimization (interferes with dragging). -->
+ <bool name="enable_background_optimization">true</bool>
</resources> \ No newline at end of file
diff --git a/res/values-sw800dp/config.xml b/res/values-sw800dp/config.xml
index ec6a85f..8af15bc 100644
--- a/res/values-sw800dp/config.xml
+++ b/res/values-sw800dp/config.xml
@@ -14,13 +14,20 @@
limitations under the License.
-->
<resources>
+
+ <!-- Maximum number of photos to leave on the table.-->
+ <integer name="table_capacity">8</integer>
+
<!-- Milliseconds between drops. -->
<integer name="table_drop_period">75000</integer>
<!-- Milliseconds to wait before the next fast drop.-->
<integer name="fast_drop">5000</integer>
- <!-- Duration in milliseconds for the pickup animation. -->
+ <!-- Parts per million ratio between image size and screen size. -->
+ <integer name="image_ratio">500000</integer>
+
+ <!-- Duration in milliseconds for the pickup animation. -->
<integer name="photo_pickup_duration">1500</integer>
</resources>
diff --git a/res/values/config.xml b/res/values/config.xml
index c3a6e65..9087266 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -109,5 +109,8 @@
<!-- Milliseconds that the focus will remain without user interaction. -->
<integer name="max_focus_time">5000</integer>
+ <!-- Enable hardware layer optimization (interferes with dragging). -->
+ <bool name="enable_background_optimization">false</bool>
+
</resources>