- 新建项目时候 第二次next之后(不同sdk版本号可能不同),Background Color项点击可选。
-
开公布局文件,选择视图查看 就是下边二个选项卡中的第一个(Graphical)。然后上边有个
AppTheme点击->Theme->前三项(Theme.Black等)都能够 - 在你最外层的layout里边设置 android:background="#000000"属性
- 在manifest中相应activity属性中,加入下边随意一种(设置白色同理,白色色值 #FFFFFF Theme.Light等)
系统自带样式Android:theme
•android:theme="@android:style/Theme.Dialog"
•android:theme="@android:style/Theme.NoTitleBar"
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
•android:theme="Theme.Light"
•android:theme="Theme.Light.NoTitleBar"
•android:theme="Theme.Light.NoTitleBar.Fullscreen"
•android:theme="Theme.Black"
•android:theme="Theme.Black.NoTitleBar"
•android:theme="Theme.Black.NoTitleBar.Fullscreen"
•android:theme="Theme.Wallpaper"
•android:theme="Theme.Wallpaper.NoTitleBar"
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen"
•android:theme="Translucent"
•android:theme="Theme.Translucent.NoTitleBar"
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen"
•android:theme="Theme.Panel"
•android:theme="Theme.Light.Panel"
再搭个设置编辑框背景的方法
设置编辑框样式。就是给那个框加个背景图片,
给一张感受下 http://www.easyicon.net/1116240-input_icon.html下载最大的那个96px的png格式。
下载之后改名(注意不能有大写字母)。然后copy到res目录下随意以drawable开头的目录下,
在layout文件里 edittext设置属性 android:background="@drawable/text_img"
版权声明:这篇文章的博客http://blog.csdn.net/pipisorry原创文章,博客,未经同意,不得转载。