Android Advanced UI ImageView ImageButton RadioButton CheckBox ProgressBar Properties and Usage Summary

Source: Internet
Author: User

Advanced UI
ImageView ImageButton RadioButton CheckBox ProgressBar
1.ImageView Picture components
Src Specify the picture to load
Scaling issues
1. Press the original proportions of the picture (not distorted)
2. Do not press proportional (distortion)
ScaleType
1.fitXY force the picture to scale to fill the entire ImageView
2.fitCenter Scale to center the picture
3.FITEND Zoom to show pictures in the lower part of the board
4.fitStart scale to upper display picture
Adjustviewbounds picture boundary and ImageView boundary fit


23code


2.ImageButton (no one used)
Inherited ImageView properties are available with the


3.ProgressBar progress bar
Style: Rotate progress bar (does not show progress) horizontal progress bar (display)


Style control Styles
[Email protected]:style/widget.progressbar.inverse rotation
[Email protected]:style/widget.progressbar.horizontal level

Total progress value of 3.max horizontal progress bar
4.progress Horizontal progress bar Current progress value
5.secondaryProgress Horizontal progress bar Current level two progress value

4.RadioButton (option)
Radiogroup (Radio box)
<radiogroup >
<radibutton/>
<radibutton/>
<radibutton/>
</RadioGroup>

1.radiobutton
Prompt text next to the 1.text radio button
2.checked whether the default is selected
3.style Toggle Style
@android: Style/widget.holo.compoundbutton.checkbox Box Selection
@android: Style/widget.holo.compoundbutton.radiobuttonCircle (Default)

@android: Style/widget.holo.compoundbutton.star Pentagram


Android Advanced UI ImageView ImageButton RadioButton CheckBox ProgressBar Properties and Usage Summary

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.