资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

android主题,android主题下载动漫

android手机怎样自定义主题

更改主题操作方法:

我们提供的服务有:网站制作、成都网站建设、微信公众号开发、网站优化、网站认证、北川羌族ssl等。为上1000+企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的北川羌族网站制作公司

1.自带主题更改:设置-主题-默认/Pink/Space/主题商店,使用时按照提示下载后即可应用。

2.您可以通过应用商店或其它方式下载主题(.APK格式)。下载完成后,打开下载的主题软件,选择应用即可。

如何在 Android 应用程序中使用自定义主题

Android 应用程序中使用自定义主题的方法:

1、新建一个项目 Lesson32_StyleAndTheme。

2、拷贝下面三张 Nine-Patch PNG图片到res/drawable目录下:

3、在按钮的同目录下建立一个文件btn_custom.xml,把上述3张图片整合成一个按钮背景文件,让三张图片成为不同状态下的按钮表现效果。具体写法如下:

?xml version="1.0" encoding="utf-8"?

selector xmlns:android=""  

item android:drawable="@drawable/btn_red" android:state_enabled="false"

item android:drawable="@drawable/btn_orange" android:state_enabled="true" android:state_pressed="true"

item android:drawable="@drawable/btn_orange" android:state_enabled="true" android:state_focused="true"

item android:drawable="@drawable/btn_black" android:state_enabled="true"

/item/item/item/item/selector

4、在res/values目录下定义style.xml文件,内容如下:

?xml version="1.0" encoding="utf-8"?

resources

style name="BasicButtonStyle" parent="@android:style/Widget.Button"

item name="android:gravity"center_vertical|center_horizontal/item

item name="android:textColor"#ffffffff/item

item name="android:shadowColor"#ff000000/item

item name="android:shadowDx"0/item

item name="android:shadowDy"-1/item

item name="android:shadowRadius"0.2/item

item name="android:textSize"16dip/item

item name="android:textStyle"bold/item

item name="android:background"@drawable/btn_custom/item

item name="android:focusable"true/item

item name="android:clickable"true/item

/style

style name="BigTextStyle"

item name="android:layout_margin"5dp/item

item name="android:textColor"#ff9900/item

item name="android:textSize"25sp/item

/style

style name="BasicButtonStyle.BigTextStyle"

item name="android:textSize"25sp/item

/style

/resources

5、在res/layout/目录下定义main.xml文件,内容如下:

?xml version="1.0" encoding="utf-8"?

linearlayout xmlns:android="" android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical"

textview android:layout_height="wrap_content" android:layout_width="fill_parent" android:text="张信哲的热搜歌曲"

button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="爱如潮水 " android:id="@+id/Button01"

/button

/textview/linearlayout

6、在res/values目录下定义theme.xml文件:

?xml version="1.0" encoding="utf-8"?

resources        

style name="BasicButtonTheme"

item name="android:buttonStyle"@style/basicbuttonstyle/item

item name="android:windowBackground"@android:color/transparent/item  

item name="android:windowIsTranslucent"true/item  

/style

/resources

7、在AndroidManifest.xml中给整个应用程序设置主题:

?xml version="1.0" encoding="utf-8"?

manifest xmlns:android="" package="android.basic.lesson32" android:versioncode="1" android:versionname="1.0"  

application android:theme="@style/BasicButtonTheme" android:label="@string/app_name" android:icon="@drawable/icon"

activity android:label="@string/app_name" android:name=".MainStyleAndTheme"

intent -filter=""

action android:name="android.intent.action.MAIN"

category android:name="android.intent.category.LAUNCHER"

/category/action/intent

/activity

/application

uses -sdk="" android:minsdkversion="8"

/uses/manifest

8、程序的最终运行效果图如下:

Android如何设置顶部状态栏颜色(主题)

在Android中我们经常需要设置屏幕顶部状态栏的主题和应用页面保持同一风格,本文介绍几种常用的设置方案:

首先给出一张图:

2 2

通过上图,我们可以通过设置不同的属性来达到控制不同位置颜色的目的,下面给出使用示例,修改res/values-19里面的内容:

主要是设置 colorPrimary,colorPrimaryDark这两个属性的值来设置状态栏的颜色,需要注意的是:

1:AndroidManifest.xml文件中的targetSdkVersion必须设置在 21 以上。

2.parent主题必须是 Theme.AppCompat 开头,兼容包下的主题,所以必须一用 v7 包。

在顶部标题栏设置属性值达到风格一致的目的

首先修改res/values-v19文件夹下的styles.xml文件内容如下(如果没有可以新建一个):

然后设置顶部标题控件的两个属性:

这时状态栏会保持与设置fitsSystemWindow属性的控件的背景颜色一致。

Android系统自带样式Theme总结

本文从网上复制,给自己做笔记的,摘自:

Android系统自带样式(@android:style/) (转)

1 android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"

布局页面最上面 不会显示  android:icon="@drawable/ic_launcher"中的值和android:label="@string/app_name"的值。

2 android:theme="@style/AppTheme"

布局页面最上面 显示  android:icon="@drawable/ic_launcher"中的值和android:label="@string/app_name"的值。

其他

在AndroidManifest.xml文件的activity中配置

1、android:theme="@android:style/Theme"

默认状态,即如果theme这里不填任何属性的时候,默认为Theme

2、android:theme="@android:style/Theme.NoDisplay"

任何都不显示。比较适用于只是运行了activity,但未显示任何东西

3、android:theme="@android:style/Theme.NoTitleBar“

背景主题的没有标题栏的样式,默认如果没有设置的话,显示黑背景

4、android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

背景主题的没有标题栏且全屏的样式,默认为黑背景

5、android:theme="@android:style/Theme.Black"

默认状态下黑背景

6、android:theme="@android:style/Theme.Black.NoTitleBar"

黑背景主题的没有标题栏的样式

7、android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"

黑背景主题的没有标题栏且全屏的样式

8、android:theme="@android:style/Theme.Light"

默认状态下亮背景,与上述黑背景Theme.Black相反

9、android:theme="@android:style/Theme.Light.NoTitleBar"

亮背景主题的没有标题栏的样式,与Theme.Black.NoTitleBar相反

10、android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"

亮背景主题的没有标题栏且全屏显示的样式,与Theme.Black.NoTitleBa.Fullscreenr相反

11、android:theme="@android:style/Theme.Dialog"

对话框样式 将整个activity变成对话框样式出现

12、android:theme="@android:style/Theme.InputMethod"

Window animations that are applied to input method overlay windows

13、android:theme="@android:style/ Theme.Panel"

删除掉所有多余的窗口装饰,在一个空的矩形框中填充内容,作用范围相当于把dialog中的所有元素全部去掉,只是一个空的矩形框,且此为默认的样式

14、android:theme="@android:style/ Theme.Light.Panel"

删除掉所有多余的窗口装饰,在一个空的矩形框中填充内容,作用范围相当于把dialog中的所有元素全部去掉,只是一个空的矩形框,且默认是light的样式

15、android:theme="@android:style/Theme.Wallpaper"

使用墙纸做主题,默认状态。

16、android:theme="@android:style/ Theme.WallpaperSettings"

使用墙纸做主题,默认是使用将上一个界面调暗之后作为主题

17、android:theme="@android:style/ Theme.Light.WallpaperSettings"

使用墙纸做主题,默认Light状态

18、android:theme="@android:style/Theme.Wallpaper.NoTitleBar"

使用墙纸做主题,且没有标题栏

19、android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"

使用墙纸做主题,且没有标题栏,且全屏显示

20、android:theme="@android:style/Theme.Translucent"

半透明状态下的背景,将运行此activity之前的屏幕作为半透明状态作为此activity运行时的样式。

21、android:theme="@android:style/Theme.Translucent.NoTitleBar"

半透明状态下没有标题栏的背景,将运行此activity之前的屏幕作为半透明状态作为此activity运行时的样式。

22、android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"

半透明状态下没有标题栏且全屏的背景,将运行此activity之前的屏幕作为半透明状态作为此activity运行时的样式。

摘自:

Android常见主题

android:theme="@android:style/Theme.Dialog" //Activity显示为对话框模式

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="Theme.Translucent" //透明背景

android:theme="Theme.Translucent.NoTitleBar" //透明背景并无标题

android:theme="Theme.Translucent.NoTitleBar.Fullscreen" //透明背景并无标题,全屏

android:theme="Theme.Panel " //面板风格显示

android:theme="Theme.Light.Panel" //平板风格显示

Android Studio有哪些值得推荐的主题背景

主题一:Darcula,就是当今最流行的背景主题,

主题二:Intellij,灰白系列,相比第三个windows主题更好看一些,但个人还是觉得Darcula最好。


当前标题:android主题,android主题下载动漫
文章地址:http://cdkjz.cn/article/dsdiiop.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220