android - Styling FacebookActivity to avoid terrible progress bar -


i implemented logging in through facebook using sdk in conjunction parsefacebookutilsv4.

in manifest had declare facebookactivity gets launched when try sign in, , works great.

<activity android:name="com.facebook.facebookactivity"     android:configchanges="keyboard|keyboardhidden|screenlayout|screensize|orientation"     android:theme="@android:style/theme.translucent.notitlebar"     android:label="@string/app_name" /> 

this snippet comes official docs didn't choose anything. found weird styling. on emulator (api 22) has progressbar seems coming '90s! there way style it? have tried changing android:theme attribute, no success.

enter image description here

i thought of extending com.facebook.facebookactivity, after digging through source code found out inflates com.facebook.loginfragment, responsible of progress bar actually. ideas?

you can set theme in androidmanifest.xml

commit src link

usage:

androidmanifest.xml

    <meta-data android:name="com.facebook.sdk.applicationid" android:value="@string/facebook_app_id"/>     <meta-data android:name="com.facebook.sdk.applicationname" android:value="@string/app_name"/>     <meta-data android:name="com.facebook.sdk.webdialogtheme" android:value="@style/theme.appcompat.light.noactionbar"/> 

this valid facebook-android-sdk v4.8.0+


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -