Transparent activity.

This commit is contained in:
Sadique Ali 2013-07-20 16:31:02 -07:00
parent 0915e877fc
commit a780f08ca8
3 changed files with 20 additions and 15 deletions

View File

@ -17,7 +17,7 @@
android:theme="@style/AppTheme" > android:theme="@style/AppTheme" >
<activity <activity
android:name="in.sdqali.sharewithtitle.MainActivity" android:name="in.sdqali.sharewithtitle.MainActivity"
android:label="" android:label="@string/app_name"
android:noHistory="true"> android:noHistory="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.SEND" /> <action android:name="android.intent.action.SEND" />

View File

@ -8,6 +8,7 @@
android:paddingBottom="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity"> tools:context=".MainActivity">
<ProgressBar <ProgressBar
style="?android:attr/progressBarStyleLarge" style="?android:attr/progressBarStyleLarge"
android:layout_width="269dp" android:layout_width="269dp"
@ -17,5 +18,4 @@
android:layout_below="@+id/progressBar" android:layout_below="@+id/progressBar"
android:layout_toRightOf="@+id/progressBar" android:layout_toRightOf="@+id/progressBar"
android:layout_gravity="center"/> android:layout_gravity="center"/>
</FrameLayout> </FrameLayout>

View File

@ -14,7 +14,12 @@
<!-- Application theme. --> <!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme"> <style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. --> <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> </style>
</resources> </resources>