新建一个项目

main.xml

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:orientation="vertical"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    ><TextView  style="@style/submaxhis"    android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:text="@string/hello"    /></LinearLayout>

style.xml

<?xml version="1.0" encoding="utf-8"?><resources><!-- 第一个样式 --><style name="maxhis"> <!-- 为样式定义一个全局唯一的名字--><item name="android:textSize">18px</item> <!-- name属性的值为使用了该样式的View控件的属性 --><item name="android:textColor">#0000CC</item></style><!-- 继承第一个样式 --><style name="submaxhis" parent="@style/maxhis"><item name="android:textColor">#FF0000</item></style><!-- 第一个主题 --><style name="maxhisTheme"><item name="android:windowNoTitle">true</item>  <!-- 没标题 --> <item name="android:windowFullscreen">?android:windowNoTitle</item> <!-- 全屏显示 --></style></resources>

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"      package="com.buke.demo"      android:versionCode="1"      android:versionName="1.0">    <uses-sdk android:minSdkVersion="8" />    <application android:icon="@drawable/icon" android:label="@string/app_name">        <activity android:name="SplashActivity"                  android:label="@string/app_name"                  android:theme="@style/maxhisTheme"                  >            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>    </application></manifest>

更多相关文章

  1. android Animation介绍
  2. android时间控件DatePicker使用实例
  3. ListView的一些属性设置
  4. [Android] Android(安卓)Tweened Animations动画使用详解二
  5. android EditText 不自动弹出键盘的方法
  6. Android判断是否触发ellipsize="end"(即textview是否换行)
  7. Android(安卓)Property实现介绍
  8. Android(安卓)UI控件Spinner控件的学习
  9. android竖向进度条简单实现

随机推荐

  1. android字体小结
  2. Android(安卓)开发技巧之 手动拖动滚动条
  3. Compile android NDK without Eclipse
  4. android 开发环境搭建
  5. Orientation to Android(安卓)Training
  6. Android(安卓)Map开发基础知识学习笔记
  7. Android系统中自带的图标&一些预定义样式
  8. android activity设置全屏以及Android获
  9. Android环境变量
  10. Android(安卓)Studio报错Could not GET '