android风格,android style

如何设计自己的android应用主题风格

•android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式

网站建设、成都做网站介绍好的网站是理念、设计和技术的结合。创新互联公司拥有的网站设计理念、多方位的设计风格、经验丰富的设计团队。提供PC端+手机端网站建设,用营销思维进行网站设计、采用先进技术开源代码、注重用户体验与SEO基础,将技术与创意整合到网站之中,以契合客户的方式做到创意性的视觉化效果。

•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"

如何将android应用设置成material风格

android提供了三种Material Design风格Theme。

分别是:

@android:style/Theme.Material (dark version)

@android:style/Theme.Material.Light (light version)

@android:style/Theme.Material.Light.DarkActionBar

Light material theme

Light material theme

Dark material theme

Dark material theme

我们可以以这三个Theme来定义我们的Theme,比如:

我们可以修改每个位置的字或者背景的颜色,每个位置的名字如下图所示:

Customizing the material theme

我就简单的介绍一下,更具体的自己探索吧。

较低版本使用Material Design风格

要在较低版本上面使用Material Design风格,则需要使用最新的support library(version 21),可以直接把项目引入工程,或者使用gradle构建,增加compile dependency:

dependencies {

compile 'com.android.support:appcompat-v7:+'

compile 'com.android.support:cardview-v7:+'

compile 'com.android.support:recyclerview-v7:+'

如何修改Android App的样式风格

android中可以自定义主题和风格。风格,也就是style,我们可以将一些统一的属性拿出来,比方说,长,宽,字体大小,字体颜色等等。可以在res/values目录下新建一个styles.xml的文件,在这个文件里面有resource根节点,在根节点里面添加item项,item项的名字就是属性的名字,item项的值就是属性的值,如下所示:

说完了style,下面就说说Theme,Theme跟style差不多,但是Theme是应用在Application或者Activity里面的,而Style是应用在某一个View里面的,还是有区别的,好了,废话不多说,还是看代码吧。下面的是style文件:

说完了style,下面就说说Theme,Theme跟style差不多,但是Theme是应用在Application或者Activity里面的,而Style是应用在某一个View里面的,还是有区别的,好了,废话不多说,还是看代码吧。下面的是style文件:

package com.test.shang;

import android.app.Activity;

import android.os.Bundle;

public class TestStyle extends Activity {

@Override

protected void onCreate (Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setTheme(R.style.CustomTheme);

setContentView(R.layout.test_style);

}

}

android中怎么引用自定义的风格

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

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

item name="android:textColor"@drawable/skin_color_button/item

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

/style

自定义style文件其实跟在layout里面直接写属性值是没有区别的,这样做的目的大概是为了更好的管理与规范代码,如上面的代码,直接放在layout中

Button

android:layout_width="wrap_content"

android:layout_height="wrap_content"

style="@style/ButtonGreen" /

这样做的好处大概是有相同的button时不用再重复写相关属性了,直接调用相应的style就行了

android UI 属于什么风格

Android前期的界面是抄袭苹果的,比如图标的设计和网格布局,乔布斯曾经为此非常恼火。从Android4.0之后,谷歌开始借鉴Windows Phone的Metro风格,界面开始平面化,简洁化,同时改进了Metro在设计上的一些不足,所以,可以说Android UI的风格是没有风格,也可以说是所有风格的集大成者。


标题名称:android风格,android style
标题路径:http://ybzwz.com/article/dsdosdd.html