Set the Android interface background to Black

Source: Internet
Author: User

There are several ways to set the background of the interface to black:
  • New Project the next time after next (different SDK versions may be different), Background color item click Optional.
  • To develop the layout file, select View View is the first of the two tabs below (graphical), then there is a
    Apptheme Click->theme-> top three items (theme.black, etc.) can be
  • Set the android:background= "#000000" property inside your outermost layout
  • In manifest, in the activity attribute, add any of the below ( set white, white color value #FFFFFF theme.light, etc. )

system comes with style android:theme
? android:theme= "@android: Style/theme.dialog" displays an activity as a dialog box mode
android:theme= "@android: Style/theme.notitlebar" does not show the application title bar
? android:theme= "@android: Style/theme.notitlebar.fullscreen" does not display the application title bar and fullscreen
android:theme= "Theme.light" background for white
android:theme= "Theme.Light.NoTitleBar" white background with no title bar
android:theme= "Theme.Light.NoTitleBar.Fullscreen" white background, no title bar, fullscreen
android:theme= "Theme.black" background Black
android:theme= "Theme.Black.NoTitleBar" black background with no title bar
android:theme= "Theme.Black.NoTitleBar.Fullscreen" black background, no title bar, fullscreen
? android:theme= "Theme.wallpaper" with System desktop for application background
? android:theme= "Theme.Wallpaper.NoTitleBar" uses the system desktop as the application background with no title bar
? android:theme= "Theme.Wallpaper.NoTitleBar.Fullscreen" with System desktop for application background, no title bar, fullscreen
? android:theme= "Translucent"
? android:theme= "Theme.Translucent.NoTitleBar"
? android:theme= "Theme.Translucent.NoTitleBar.Fullscreen"
? android:theme= "Theme.panel"
? android:theme= "Theme.Light.Panel"


and a way to set the background of the edit box.
Set the edit box style to add a background image to the box,
give a feelhttp://www.easyicon.net/1116240-input_icon.htmlDownload the largest 96px PNG format.
Rename after download (Note that you cannot have capital letters), and then copy to the Res folder under any folder that starts with drawable.

EditText Setting Properties Android:background= "@drawable/text_img" in the layout file


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.