<!--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>