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

@ -1,20 +1,25 @@
<resources> <resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!-- <!--
Base application theme, dependent on API level. This theme is replaced Theme customizations available in newer API levels can go in
by AppBaseTheme from res/values-vXX/styles.xml on newer devices. res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
--> -->
<style name="AppBaseTheme" parent="android:Theme.Light"> </style>
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- 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>
</style> <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> </resources>