commit | 5bc865e787b51ebbdebb14bf1eefc3a91f5f7c8d | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Thu Jul 18 15:18:25 2013 -0700 |
committer | Winson Chung <winsonc@google.com> | Thu Jul 18 15:18:25 2013 -0700 |
tree | dee52677ea4215c83329be45b30c557883048afe | |
parent | ea6772346e80bc9da677c0d3a7955b6b9ed953bb [diff] |
Adding workaround for page indicators to support many pages. - Tweaking assets until we get something proper Change-Id: Ie07946acb529ff747d76896ff38837f8db6a7258
diff --git a/res/drawable-hdpi/active_page.png b/res/drawable-hdpi/active_page.png index ce2d5b1..58aa7f9 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 2186f51..b70d9f4 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 9e23ecc..296a9a6 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 9468a62..2225d25 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 c43e67c..a1cfc35 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 ae3f988..177b253 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 8aae752..14eff75 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 1545083..09b8804 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 6aaca1a..cc3d4f0 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>