Android-radiobutton size change

Source: Internet
Author: User

There are five options for rating, but the screen width of the mobile phone is insufficient and cannot be fully displayed. Adjust layout_width. layout_height or width and height do not work, and no good solution has been found yet. So I found a ratingbar to replace it. I still think ratingbar is more suitable for evaluation ,,

The solution seems to be available now. below is the method for adjusting the ratingbar size (but after the size is adjusted, it can only be used as a signboard and cannot interact with users), and the same should be true for radiobutton.

<Ratingbarandroid: Id ID @ + ID/evaluationactivity_rb_manner "Android: layout__width =" wrap_content "android Android: layout_height =" wrap_content "style = "? Android: ATTR/ratingbarstylesmall "/>

Ratingbar can only display 3 stars on the screen below eclipse 3.7, but the real machine test shows that, don't worry at all. In later, we will develop the lowest standard according to our mobile phone specification ~


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.