Skip to content

Instantly share code, notes, and snippets.

@MichaelEvans
Forked from rashiq/WebDialog.java
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelEvans/642d5662e371ca448048 to your computer and use it in GitHub Desktop.
Save MichaelEvans/642d5662e371ca448048 to your computer and use it in GitHub Desktop.
<style name="FbDialog" parent="@android:style/Theme.Holo.Light">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsTranslucent">true</item>
</style>
/* Change this line inside the WebDialog.java class:
https://github.com/facebook/facebook-android-sdk/blob/master/facebook/src/com/facebook/widget/WebDialog.java#L60
to the code block below.
*/
public static final int DEFAULT_THEME;
static {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
DEFAULT_THEME = R.style.FbDialog;
} else {
DEFAULT_THEME = android.R.style.Theme_Translucent_NoTitleBar;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment