How to set the orientation to potrait in firebase UI in android

36 views
Skip to first unread message

and...@teamta.in

unread,
Jun 22, 2018, 11:18:28 AM6/22/18
to Firebase Google Group

I am using firebas UI for authentication, In case of ioS the orientation is not an issue, In case of android if the screen orientation of phone is auto rotated, the firebase UI will also get rotated.

  • I have set the application orientation to potrait in manifiest
  • I have also added code to make my activity potrait in my class.

  • Setting a custom UI to the Firebase UI with style

        <style name="FirebaseLoginTheme" parent="FirebaseUI">
        <item name="android:screenOrientation">portrait</item>
        <item name="android:windowContentOverlay">@null</item>
        </style>

    does not worked. Is their any way to restrict it to potrait.

Reply all
Reply to author
Forward
0 new messages