码迷,mamicode.com
首页 > 移动开发 > 详细

安卓桌面开发小应用

时间:2014-08-26 08:31:45      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:android   style   color   使用   io   文件   ar   cti   log   

1.编写androidManifest.xml文件配置权限:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

2.去除标题栏(全屏):<activity android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

3.使用一个主题,但需调整,可以以此主题为定制主题的父主题:

<style name="Custom Theme" parent="@android:style/Theme.Dialog">

<item name="android:background">#ffffff</item>

<item name="android:textColor">#000000</item>

4.针对所有activity或者某个activity设置样式,可通过编辑androidmanifest.xml完成:

<application android:theme="@style/wrap_content">

<activity android:theme="@style/wrap_content">

5.使用Dialog 主题,使activity以对话框形式显示:

<activity android:theme="@android:style/Theme.Dialog">

6.背景透明:<acitvity android:theme="@android:style/them.Translucent">

7.去除标题栏:<activity android:theme="@andorid:style/Theme.NoBar">

 

安卓桌面开发小应用

标签:android   style   color   使用   io   文件   ar   cti   log   

原文地址:http://www.cnblogs.com/zhongshujunqia/p/3936358.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!