13. Android Learning note _andorid Control style summary

Source: Internet
Author: User


 <!--set activity to transparent -    <stylename= "Translucent">        <Itemname= "Android:windowbackground">@color/translucent</Item>        <Itemname= "Android:windowistranslucent">True</Item>        <Itemname= "Android:theme">@android: Style/theme.notitlebar</Item>        <Itemname= "Android:windowanimationstyle">@+android:style/animation.translucent</Item>    </style>    <!--set the style of EditText -    <stylename= "Edittext_style">        <Itemname= "Android:background">@drawable/EDITTEXT_BG</Item>        <Itemname= "Android:textsize">12sp</Item>        <Itemname= "Android:layout_marginleft">20dip</Item>        <Itemname= "Android:layout_marginright">20dip</Item>        <Itemname= "Android:layout_margintop">10dip</Item>        <Itemname= "Android:layout_height">35dip</Item>        <Itemname= "Android:textcolor">@color/black</Item>    </style>    <!--set the style of the toggle button TextView -    <stylename= "Textview_btn_switch">        <Itemname= "Android:layout_width">120dip</Item>        <Itemname= "Android:layout_height">Wrap_content</Item>        <Itemname= "Android:gravity">Center</Item>        <Itemname= "Android:paddingbottom">5dip</Item>        <Itemname= "Android:paddingleft">10dip</Item>        <Itemname= "Android:paddingright">10dip</Item>        <Itemname= "Android:paddingtop">8dip</Item>        <Itemname= "Android:textcolor">@color/black</Item>        <Itemname= "Android:textsize">15sp</Item>    </style>    <!--set the style of button buttons -    <stylename= "Button_btn_switch">        <Itemname= "Android:layout_width">120dip</Item>        <Itemname= "Android:layout_height">35dip</Item>        <Itemname= "Android:background">@drawable/button_selector</Item>        <Itemname= "Android:textcolor">@color/black</Item>        <Itemname= "Android:textsize">14sp</Item>    </style>    <!--set the style of the button RadioButton -    <stylename= "Radio_btn_switch">        <Itemname= "Android:layout_width">Wrap_content</Item>        <Itemname= "Android:layout_height">Wrap_content</Item>        <Itemname= "Android:layout_marginleft">10dip</Item>        <Itemname= "Android:textcolor">@color/black</Item>        <Itemname= "Android:textsize">14sp</Item>    </style>
Edittext_bg.xml:
<?XML version= "1.0" encoding= "Utf-8"?><Shapexmlns:android= "Http://schemas.android.com/apk/res/android" >    <!--width and color of edge lines -    <StrokeAndroid:width= "1px"Android:color= "#96AAD8" />    <!--Intermediate Gradient, angle 0 from left to right, positive value counterclockwise, 270 degrees from top to bottom -    <GradientAndroid:angle= "+"Android:centercolor= "#E9F2FC"Android:endcolor= "#E9F2FC"Android:startcolor= "#E9F2FC" />    <!--Set padding -    <paddingAndroid:bottom= "5DP"Android:left= "5DP"Android:right= "5DP"Android:top= "5DP" /></Shape>

<!--Dialog dialog box style - <stylename= "Mydialogstyle"Parent= "@android: Style/theme.dialog">        <Itemname= "Android:windowbackground">@android: Color/transparent</Item>        <Itemname= "Android:windowframe">@null</Item>        <Itemname= "Android:windownotitle">True</Item>        <Itemname= "Android:windowisfloating">True</Item>        <Itemname= "Android:windowistranslucent">True</Item>        <Itemname= "Android:windowcontentoverlay">@null</Item>        <Itemname= "Android:windowanimationstyle">@android: Style/animation.dialog</Item>        <Itemname= "android:backgrounddimenabled">True</Item></style>

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.