Android advanced UI ImageView ImageButton RadioButton CheckBox ProgressBar attributes and usage Summary

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.