1. Write Androidmanifest.xml file configuration permissions:
<uses-permission android:name= "Android.permission.WRITE_EXTERNAL_STORAGE"/>
2. Remove title bar (full screen): <activity android:theme= "@android: Style/theme.notitlebar.fullscreen" >
3. Use a theme, but adjust it so that you can customize the theme's parent topic for this topic:
<style name= "Custom Theme" parent= "@android: Style/theme.dialog" >
<item name= "Android:background" > #ffffff </item>
<item name= "Android:textcolor" > #000000 </item>
4. Set the style for all activity or an activity, which can be done by editing Androidmanifest.xml:
<application android:theme= "@style/wrap_content" >
<activity android:theme= "@style/wrap_content" >
5. Use the dialog theme to make the activity appear as a dialog box:
<activity android:theme= "@android: Style/theme.dialog" >
6. Transparent background: <acitvity android:theme= "@android: Style/them. Translucent ">
7. Remove title bar: <activity android:theme= "@andorid: Style/theme.nobar" >
Android Desktop Development Small app