Method analysis of drawing circular avatar in Android Application
To draw this round shaded head, the individual is divided into three layers
1. Draw the gradient at the edge of the avatar first
2. Cut out the round head image bitmap
3. Finally, draw a white edge
PS: Android App common icon size specification 1. Program startup Icon: LDPI (low density screen, 120 DPI), with an icon size of 36 x 36 px. MDPI (medium density screen, 160 DPI) with an icon size of 48 X 48 px. Hdpi (high density screen, 240 DPI) with an icon size of 72 x 72 px. Xhdpi (extra high density screen, 320 DPI) with an icon size of 96 x 96 px. Xxhdpi (XX high density screen, 480 DPI) with an icon size of 144 x 144 px.
2. Bottom menu icon (1) large screen: full picture (red): 72 x 72 PX icon (blue): 48 X 48 PX icon outer border (pink): 44 x 44 PX
(2) Middle screen: full picture: 48 X 48 PX Icon: 32 x 32 PX icon outer border: 30 x 30 PX
(3) Small screen: full picture: 36 x 36 PX Icon: 24 x 24 PX icon outer border: 22 x 22 PX
3. Pop up the icon at the top of the dialog box
Small screen 24 x 24 PX low density screen (LDPI) medium screen 32 x 32 PX medium density screen (MDPI) large screen 48 X 48 PX high density screen (hdpi)
4. Long list internal list item icon
Small screen 24 x 24 PX low density screen (LDPI) medium screen 32 x 32 PX medium density screen (MDPI) large screen 48 X 48 PX high density screen (hdpi)
5. Bottom or top tab Icon
(1) Large screen (hdpi) screens: full picture (red): 48 X 48 PX icon (blue): 42 x 42 PX
(2) MDPI screens: full picture: 32 x 32 PX Icon: 28 x 28 PX
(3) Small screen (LDPI) screens: full picture: 24 x 24 PX Icon: 22 x 22 PX
6. Bottom status bar icon
LDPI (120 DPI) 18 x 18 PX small screen MDPI (160 DPI) 24 x 24 PX medium screen hdpi (240 DPI) 36 x 36 PX large screen xhdpi (320 DPI) 48 X 48 PX extra large screen