summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2013-07-18 15:18:25 -0700
committerWinson Chung <winsonc@google.com>2013-07-18 15:18:25 -0700
commit5bc865e787b51ebbdebb14bf1eefc3a91f5f7c8d (patch)
treedee52677ea4215c83329be45b30c557883048afe /res
parentea6772346e80bc9da677c0d3a7955b6b9ed953bb (diff)
downloadandroid_packages_apps_Trebuchet-5bc865e787b51ebbdebb14bf1eefc3a91f5f7c8d.tar.gz
android_packages_apps_Trebuchet-5bc865e787b51ebbdebb14bf1eefc3a91f5f7c8d.tar.bz2
android_packages_apps_Trebuchet-5bc865e787b51ebbdebb14bf1eefc3a91f5f7c8d.zip
Adding workaround for page indicators to support many pages.
- Tweaking assets until we get something proper Change-Id: Ie07946acb529ff747d76896ff38837f8db6a7258
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/active_page.pngbin1295 -> 1223 bytes
-rw-r--r--res/drawable-hdpi/inactive_page.pngbin1402 -> 1275 bytes
-rw-r--r--res/drawable-mdpi/active_page.pngbin1186 -> 1225 bytes
-rw-r--r--res/drawable-mdpi/inactive_page.pngbin1268 -> 1189 bytes
-rw-r--r--res/drawable-xhdpi/active_page.pngbin1367 -> 1225 bytes
-rw-r--r--res/drawable-xhdpi/inactive_page.pngbin1450 -> 1235 bytes
-rw-r--r--res/layout/page_indicator.xml3
-rw-r--r--res/values/attrs.xml7
-rw-r--r--res/values/config.xml3
9 files changed, 12 insertions, 1 deletions
diff --git a/res/drawable-hdpi/active_page.png b/res/drawable-hdpi/active_page.png
index ce2d5b169..58aa7f9ee 100644
--- a/res/drawable-hdpi/active_page.png
+++ b/res/drawable-hdpi/active_page.png
Binary files differ
diff --git a/res/drawable-hdpi/inactive_page.png b/res/drawable-hdpi/inactive_page.png
index 2186f519a..b70d9f418 100644
--- a/res/drawable-hdpi/inactive_page.png
+++ b/res/drawable-hdpi/inactive_page.png
Binary files differ
diff --git a/res/drawable-mdpi/active_page.png b/res/drawable-mdpi/active_page.png
index 9e23eccb0..296a9a6b0 100644
--- a/res/drawable-mdpi/active_page.png
+++ b/res/drawable-mdpi/active_page.png
Binary files differ
diff --git a/res/drawable-mdpi/inactive_page.png b/res/drawable-mdpi/inactive_page.png
index 9468a62ed..2225d250b 100644
--- a/res/drawable-mdpi/inactive_page.png
+++ b/res/drawable-mdpi/inactive_page.png
Binary files differ
diff --git a/res/drawable-xhdpi/active_page.png b/res/drawable-xhdpi/active_page.png
index c43e67c40..a1cfc354b 100644
--- a/res/drawable-xhdpi/active_page.png
+++ b/res/drawable-xhdpi/active_page.png
Binary files differ
diff --git a/res/drawable-xhdpi/inactive_page.png b/res/drawable-xhdpi/inactive_page.png
index ae3f9885b..177b25305 100644
--- a/res/drawable-xhdpi/inactive_page.png
+++ b/res/drawable-xhdpi/inactive_page.png
Binary files differ
diff --git a/res/layout/page_indicator.xml b/res/layout/page_indicator.xml
index 8aae752c5..14eff75d0 100644
--- a/res/layout/page_indicator.xml
+++ b/res/layout/page_indicator.xml
@@ -16,5 +16,6 @@
<com.android.launcher3.PageIndicator
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
- android:animateLayoutChanges="true">
+ android:animateLayoutChanges="true"
+ launcher:windowSize="@integer/config_maxNumberOfPageIndicatorsToShow">
</com.android.launcher3.PageIndicator>
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 154508379..09b880420 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -32,6 +32,13 @@
<attr name="drawIdentifier" format="string" />
</declare-styleable>
+ <!-- Page Indicator specific attributes. These attributes are used to customize
+ the cling in XML files. -->
+ <declare-styleable name="PageIndicator">
+ <!-- Used to identify how to draw the cling bg -->
+ <attr name="windowSize" format="integer" />
+ </declare-styleable>
+
<!-- Workspace specific attributes. These attributes are used to customize
the workspace in XML files. -->
<declare-styleable name="Workspace">
diff --git a/res/values/config.xml b/res/values/config.xml
index 6aaca1ad5..cc3d4f0bf 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -3,6 +3,9 @@
<bool name="is_large_screen">false</bool>
<bool name="allow_rotation">false</bool>
+ <!-- Max number of page indicators to show -->
+ <integer name="config_maxNumberOfPageIndicatorsToShow">21</integer>
+
<!-- DragController -->
<integer name="config_flingToDeleteMinVelocity">-1500</integer>