Android Puzzlers: Traps, Pitfalls and Corner Cases
summary
Slides show concrete surprises: Android layout inflation returns the parent when inflate(view, parent, attach=true) is used so inflate(parent, attach=true) returns parent rather than the child; padding precedence changes when RTL is enabled so start/end override other paddings; fragment detach only affects onCreateView/onDestroyView not attach/detach callbacks; NotificationChannel.delete merely marks and can revive the old channel so notification channel delete revives old ID; SharedPreferences.apply updates memory immediately; LinearLayout weight math can shrink a child to zero.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 7:33Inflation Result
- 14:27Activity Lifecycle
- 17:27Robo
- 21:58Fragment
- 24:28Notification Channel
- 28:31Shared Preferences
- 31:18Linear Layout
- 35:27Local Resolution








