安卓桌面开发小应用

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

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