Last active
August 29, 2015 14:06
-
-
Save koriner/004324ef59f889ee855c to your computer and use it in GitHub Desktop.
distriqt / FacebookAPI - Android Landscape orientation support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
__ __ __ | |
____/ /_ ____/ /______ _ ___ / /_ | |
/ __ / / ___/ __/ ___/ / __ `/ __/ | |
/ /_/ / (__ ) / / / / / /_/ / / | |
\__,_/_/____/_/ /_/ /_/\__, /_/ | |
/ / | |
\/ | |
http://distriqt.com | |
------------------------------------- | |
brief: Facebook API Android - Landscape orientation support | |
tag: distriqt.extension.facebookapi | |
--> | |
<!-- | |
This is just a quick example for the changes required to support FacebookAPI | |
dialogs and login activities in Android | |
Your application descriptor contains 3 definitions for facebook activities, under the Android manifest settings | |
You should modify those 3 entries depending on which layout your application runs in. | |
NOTE: Some share dialogs will open in portrait mode, even if your app is in landscape. This will hopefully be fixed | |
in a future version for dialogs which properly support landscape. | |
--> | |
<!-- For PORTRAIT orientation application, use these values --> | |
<activity android:name="com.facebook.LoginActivity"/> | |
<activity android:name="com.distriqt.extension.facebookapi.FacebookAPILoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity> | |
<activity android:name="com.distriqt.extension.facebookapi.FacebookAPIDialogActivity"></activity> | |
<!-- end PORTRAIT settings --> | |
<!-- For LANDSCAPE orientation application, use these values --> | |
<activity android:name="com.facebook.LoginActivity" android:screenOrientation="landscape"/> | |
<activity android:name="com.distriqt.extension.facebookapi.FacebookAPILoginActivity" android:screenOrientation="landscape"></activity> | |
<activity android:name="com.distriqt.extension.facebookapi.FacebookAPIDialogActivity"></activity> | |
<!-- end LANDSCAPE settings --> | |
<!-- EOF --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment