Skip to content

Hide/Show Apple icon & Custom Typeface support#69

Open
jcchikikomori wants to merge 5 commits intowillowtreeapps:developfrom
jcchikikomori:feature/custom-button-and-debuggable
Open

Hide/Show Apple icon & Custom Typeface support#69
jcchikikomori wants to merge 5 commits intowillowtreeapps:developfrom
jcchikikomori:feature/custom-button-and-debuggable

Conversation

@jcchikikomori
Copy link

Usages

Hide/Show Apple icon

<!-- Add "sign_in_with_apple_button_enableIcon" -->
<com.willowtreeapps.signinwithapplebutton.view.SignInWithAppleButton
            android:id="@+id/sign_in_with_apple_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="6dp"
            android:background="@drawable/bg_apple_signin_button"
            app:sign_in_with_apple_button_textType="signInWithApple"
            app:sign_in_with_apple_button_enableIcon="false" 
            style="@style/AppleSignInButton" />

Custom Typeface support

@BindView(R.id.sign_in_with_apple_button)
SignInWithAppleButton signInWithAppleButton;

...

SignInWithAppleConfiguration configuration = new SignInWithAppleConfiguration(
         BuildConfig.APPLE_SIGNIN_CLIENT_ID,
         BuildConfig.APPLE_SIGNIN_REDIRECT_URL,
         "name email"
);
signInWithAppleButton.setTypeFace(Typeface.createFromAsset(this.getAssets(), "fonts/whatever.ttf"));

@jcchikikomori jcchikikomori force-pushed the feature/custom-button-and-debuggable branch from e86c24f to 07c0b17 Compare September 11, 2020 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant