Android views, layouts and RecyclerView interview questions
The View system questions still asked in 2026: measuring and drawing, ConstraintLayout, RecyclerView, custom views and resources.
– interview-ready · 8 questions in this topic
– of 8 tried
Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.
Questions
- How a View is measured, laid out and drawnPick the fix
- ConstraintLayoutPick the fix
- RecyclerView, ListAdapter and DiffUtilSpot the bug
- Writing a custom ViewSpot the bug
- Resources and qualifiersPick the fix
- View Binding vs findViewById and Data BindingPick the fix
- Touch event dispatchPredict
- Large screens and window size classesPick the fix
Practise this topic
Flashcards · 12
Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.
Quick quiz · 8 questions
One exercise per question, checked as you go. Needs JavaScript.
Mock interview · 1 set
Timed, out loud, then tick what you covered. Needs JavaScript.
Fix this PR · 2 reviews
Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.
Quick facts
Recall the answer first, then tap Show to check.
dp
1 dp is one pixel on a 160 dpi screen; Android scales it for other densities.
ViewStub
ViewStub inflates its layout only when made visible or inflated, saving work for rarely shown views.
ViewPager2
ViewPager2 is built on RecyclerView and uses FragmentStateAdapter for Fragment pages.
Touch target
Material guidance asks for touch targets of at least 48 × 48 dp.
Printable cheat sheet · Review your weak spots in this topic
Share your progress
Sources: Question outline adapted from Android-Interview-Questions by Mohsen Mirhoseini, licensed under Apache 2.0. We reorganised the questions, rewrote every answer and added new ones. Credits and license