Use a bespoke label view

Create a bespoke label view that centers text more precisely in the
presense of a end-side badge. The view is used under a flag.

One unflagged trivial refactoring was made: some of the
ResolverListAdapter$ViewHolder's methods that were only used inside
ChooserListAdapter were moved there for a better cohesion; the reset
method is split similarly.

Bug: 302188527
Test: The view is tested in both Chooser and a stand-alone test app
Flag: ACONFIG com.android.intentresolver.bespoke_label_view DEVELOPMENT
Change-Id: Iec871afcdc634f2ce50a4b31a8cc34b88ebb496c
11 files changed
tree: 8c6945c172c2711790e7ebefb2783d07c7448b68
  1. aconfig/
  2. java/
  3. tests/
  4. Android.bp
  5. AndroidManifest-app.xml
  6. AndroidManifest-lib.xml
  7. OWNERS
  8. PREUPLOAD.cfg
  9. proguard.flags
  10. README.md
  11. TEST_MAPPING
README.md

IntentResolver

About

IntentResolver provides the implementation for Intent ACTION_CHOOSER

See also: ShareCompat.IntentBuilder