android studio not showing the preview of xml code code example
Example 1: layout preview not showing android studio
Try File > invalidate cache / restart. if dosent work check next one
Example 2: layout preview not showing android studio
Try Rebuilding project