~/talk

Inside an AOSP Mail App Implementing WebView + ViewGroup and Its Application to News Apps

TalkinJapaneseat DroidKaigi 2019 · 2019-02-07..02-08· [android]
name:ogapants
links:none on file
slides:none on file

Describes how AOSP Mail avoids embedding a WebView inside a ScrollView — which can cause content cut-off and occasional IllegalStateException on some devices — by overlaying header/footer views on a scrolling WebView, measuring their heights, injecting a CSS padding template into the HTML, and hooking WebView scroll deltas to move the overlays. Presents a prototype that reproduces the ScrollView bug and a second implementation that uses WebView-only scrolling to fix the issue, slightly improve render speed, increase code complexity, and then gets integrated into a news app after testing.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06ScrollView pitfalls
  3. 8:24AOSP Mail app WebView+ViewGroup
  4. 12:04Implementation details
  5. 19:04News app results
  6. 23:33Alternative approaches
  7. 27:54Demo and key points
  8. 29:01Summary & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.