Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Transparent background on EditActivity

  • Loading branch information...
commit 8a84c091f9b0e5be80922c6f136347e2b9c17636 1 parent 48f3d9e
@simonewebdesign authored
View
3  AndroidManifest.xml
@@ -31,7 +31,8 @@
<activity
android:name="com.example.todolist.EditActivity"
android:label="@string/title_activity_edit"
- android:parentActivityName="com.example.todolist.MainActivity" >
+ android:parentActivityName="com.example.todolist.MainActivity"
+ android:theme="@style/Theme.Transparent" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.todolist.MainActivity" />
View
41 bin/AndroidManifest.xml
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.example.todolist"
- android:versionCode="1"
- android:versionName="1.0" >
-
- <uses-sdk
- android:minSdkVersion="8"
- android:targetSdkVersion="17" />
-
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
-
- <application
- android:allowBackup="true"
- android:icon="@drawable/ic_launcher"
- android:label="@string/app_name"
- android:theme="@style/AppTheme" >
- <activity
- android:name="com.example.todolist.MainActivity"
- android:label="@string/app_name" >
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
-
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <activity
- android:name="com.example.todolist.ListActivity"
- android:label="@string/title_activity_list" >
- </activity>
- <activity
- android:name="com.example.todolist.EditActivity"
- android:label="@string/title_activity_edit"
- android:parentActivityName="com.example.todolist.MainActivity" >
- <meta-data
- android:name="android.support.PARENT_ACTIVITY"
- android:value="com.example.todolist.MainActivity" />
- </activity>
- </application>
-
-</manifest>
View
1  res/layout/activity_edit.xml
@@ -2,7 +2,6 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:background="#000000FF"
tools:context=".EditActivity" >
<RelativeLayout
View
4 res/values/color.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="transparent">#00000000</color>
+</resources>
View
9 res/values/styles.xml
@@ -17,4 +17,13 @@
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
+ <style name="Theme.Transparent" parent="android:Theme">
+ <item name="android:windowIsTranslucent">true</item>
+ <item name="android:windowBackground">@android:color/transparent</item>
+ <item name="android:windowContentOverlay">@null</item>
+ <item name="android:windowNoTitle">true</item>
+ <item name="android:windowIsFloating">true</item>
+ <item name="android:backgroundDimEnabled">false</item>
+ </style>
+
</resources>
Please sign in to comment.
Something went wrong with that request. Please try again.