首页 > 代码库 > Android窗口为弹出框样式

Android窗口为弹出框样式

1、XML

android:theme="@android:style/Theme.Dialog

<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="com.fish.helloworld"    android:versionCode="1"    android:versionName="1.0" >    <uses-sdk        android:minSdkVersion="17"        android:targetSdkVersion="17" />    <application        android:allowBackup="true"        android:icon="@drawable/ic_launcher"        android:label="@string/app_name"        android:theme="@android:style/Theme.Dialog" >        <activity            android:name=".MainActivity"            android:label="@string/title_activity_receive" >             <intent-filter>                <action android:name="android.intent.action.MAIN" />                                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity>    </application></manifest>