google oauth - How to change the icon of the Auth0 LockActivity for android? -
i'm using auth0 manage security of android app , need customize login activity.
i use default lockactivity of lock.android library. how can change icon of lockactivity?
you can customize lockactivity implementing style inherits lock.theme
, overrides auth0.title.icon
style attribute own app logo.
here code example:
<style name="apptheme.lock.theme" parent="lock.theme"> <item name="auth0.title.icon">@style/exigo.lock.theme.title.icon</item> </style> <style name="apptheme.lock.theme.title.icon" parent="lock.theme.title.icon"> <item name="android:src">@drawable/ic_login_main</item> </style>
then in android manifest file need change style of lockactivity customized style.
<activity android:name="com.auth0.lock.lockactivity" android:launchmode="singletask" android:screenorientation="portrait" android:theme="@style/apptheme.lock.theme" >
you can see other fields can customize here.
Comments
Post a Comment