zoukankan      html  css  js  c++  java
  • 安卓桌面开发小应用

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

  • 相关阅读:
    jQuery UI DatePicker用法和中文设置
    jQuery的ajax方法
    jQuery遍历复杂的JSON数据
    JavaScript面向对象的写法
    jpa
    日志
    全局异常的处理!
    oracle表空间
    plsql的连接配置
    pLsql使用
  • 原文地址:https://www.cnblogs.com/zhongshujunqia/p/3936358.html
Copyright © 2011-2022 走看看