diff options
author | Chris Wren <cwren@android.com> | 2012-08-16 17:33:34 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2012-08-23 09:49:39 -0400 |
commit | c8ca07eb52a54efe327d024dc542e0a7f8849bfb (patch) | |
tree | 0b708e6bea60854beaf9f4184d857b8ca2bff7e4 /res/values | |
parent | 7a809b2eda2d9cf8439202e03a092e850bfde1dc (diff) | |
download | PhotoTable-c8ca07eb52a54efe327d024dc542e0a7f8849bfb.tar.gz |
Example Dream: photos
An example screensaver that shows local photos.
Change-Id: I2997c4f8ab35777d96df31a46f2f55044e3114c2
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/colors.xml | 18 | ||||
-rw-r--r-- | res/values/config.xml | 33 | ||||
-rw-r--r-- | res/values/dimen.xml | 18 | ||||
-rw-r--r-- | res/values/ids.xml | 20 | ||||
-rw-r--r-- | res/values/strings.xml | 19 |
5 files changed, 108 insertions, 0 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml new file mode 100644 index 0000000..9d5864e --- /dev/null +++ b/res/values/colors.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<resources> + <color name="tabletop">#ff444444</color> +</resources> diff --git a/res/values/config.xml b/res/values/config.xml new file mode 100644 index 0000000..f1c9fcc --- /dev/null +++ b/res/values/config.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<resources> + <!-- Milliseconds between drops, needs to be tuned to slide_duration + to control the number of photos on the table at any given time. --> + <integer name="drop_period">30000</integer> + + <!-- Number of photos to drop when the screensaver starts.--> + <integer name="initial_drop">10</integer> + + <!-- Maximum number of photos to leave on the table.--> + <integer name="table_capacity">10</integer> + + <!-- Parts per million ratio between image size and screen size. --> + <integer name="image_ratio">1000000</integer> + + <!-- Maximum number of image paths to load before shuffling. --> + <integer name="image_queue_size">1000</integer> +</resources> + diff --git a/res/values/dimen.xml b/res/values/dimen.xml new file mode 100644 index 0000000..7e070df --- /dev/null +++ b/res/values/dimen.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<resources> + <dimen name="photo_inset">4px</dimen> +</resources> diff --git a/res/values/ids.xml b/res/values/ids.xml new file mode 100644 index 0000000..3f65a0c --- /dev/null +++ b/res/values/ids.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2012 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. +--> +<resources> + <item type="id" name="photo_height" /> + <item type="id" name="photo_width" /> +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..94e2f9c --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<resources> + <string name="app_name">Photo Table Screensaver</string> + <string name="screensaver_name">Photo Table</string> +</resources> |