summaryrefslogtreecommitdiffstats
path: root/core/res/res/layout
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2015-09-28 10:45:00 -0700
committerAdam Powell <adamp@google.com>2015-10-02 12:32:24 -0700
commit6ef8578ef44a69a391861e1103cee0ca9b745775 (patch)
treedb8c60a00e4f3998a30f0659b90fe6256c47d42e /core/res/res/layout
parent86e153d5f0614c9f3da137fd0b815a398598928b (diff)
downloadframeworks_base-6ef8578ef44a69a391861e1103cee0ca9b745775.zip
frameworks_base-6ef8578ef44a69a391861e1103cee0ca9b745775.tar.gz
frameworks_base-6ef8578ef44a69a391861e1103cee0ca9b745775.tar.bz2
Add animation and positional stability to intent chooser UI
Dejank the process of bringing in new ChooserTargets from queried services. Animate the service target rows in upward so that if the user's finger is already headed for a visible choice we don't inject something wrong right under them at the last second. Keep things sane if the user is dragging the UI while we're bringing in new items. To animate this, since we can't use RecyclerView from the framework we treat the height of rows as a conceptual data set change for ListView. To get away with doing this per-frame we pre-measure the item height (which remains constant) instead of doing more expensive wrap_content calculations. ResolverDrawerLayout is now aware of how to account for a cheat-measured ListView to compensate. Bug 24038066 Change-Id: I01414a5746815255ff948a6d0887bb5ad0897285
Diffstat (limited to 'core/res/res/layout')
-rw-r--r--core/res/res/layout/chooser_grid.xml2
-rw-r--r--core/res/res/layout/resolve_grid_item.xml3
2 files changed, 3 insertions, 2 deletions
diff --git a/core/res/res/layout/chooser_grid.xml b/core/res/res/layout/chooser_grid.xml
index dcdfb6c..41726fb 100644
--- a/core/res/res/layout/chooser_grid.xml
+++ b/core/res/res/layout/chooser_grid.xml
@@ -85,7 +85,7 @@
<ListView
android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:id="@+id/resolver_list"
android:clipToPadding="false"
android:scrollbarStyle="outsideOverlay"
diff --git a/core/res/res/layout/resolve_grid_item.xml b/core/res/res/layout/resolve_grid_item.xml
index 1c496f6..0a7ac77 100644
--- a/core/res/res/layout/resolve_grid_item.xml
+++ b/core/res/res/layout/resolve_grid_item.xml
@@ -70,6 +70,7 @@
android:minLines="2"
android:maxLines="2"
android:gravity="top|center_horizontal"
- android:ellipsize="marquee" />
+ android:ellipsize="marquee"
+ android:visibility="gone" />
</LinearLayout>