I want to design the following UI. Can anybody give me an example or suggest some source code for implementation?
You can use a RelativeLayout with two children, one for the icon and one for the badge. The icon needs extra padding so that the badge is slightly outside of it. The badge is positioned aligned with parentTop and parentRight.