Android advanced UI ImageView ImageButton RadioButton CheckBox ProgressBar attributes and usage Summary
Advanced UI
ImageView ImageButton RadioButton CheckBox ProgressBar
1. ImageView image component
Src specifies the image to be loaded
Scaling Problems
1. According to the original image proportion (no distortion)
2. Not proportional (distortion)
ScaleType
1. Force fitXY to scale the image to fill the entire imageview
2. The fitCenter scales proportionally to show the image in the center.
3. fitEnd scales proportionally to show the image at the bottom of the Board.
4. fitStart scales proportionally to display the image on the top
AdjustViewBounds: Image Boundary and imageview boundary match
23 code
2. ImageButton (no one uses it)
All attributes inherited from ImageView can be used
3. Progress bar
Style: Rotate progress bar (do not show progress) Horizontal progress bar (show)
Style control style
1. @ android: style/Widget. ProgressBar. Inverse rotation
2. @ android: style/Widget. ProgressBar. Horizontal level
3. Overall progress value of the max horizontal progress bar
4. Current progress value of the progress horizontal progress bar
5. secondaryProgress horizontal progress bar current level 2 Progress Value
4. RadioButton (option)
RadioGroup (single region)
1. radiobutton
1. Prompt text next to the text radio button
2. Check whether checked is selected by default
3. style Switching
@ Android: style/Widget. Holo. CompoundButton. CheckBox box Selection
@ Android: style/Widget. Holo. CompoundButton. RadioButton circle (default)
@ Android: style/Widget. Holo. CompoundButton. Star