[英]Can I unify the style of facebook sign in button like Google in android app?
我正在使用登录系统制作该应用程序。 但是我想统一每个按钮的样式。 我的activity_login.xml显示了我正在使用的小部件。 我想将Google按钮样式应用于“继续使用Facebook”。
<com.google.android.gms.common.SignInButton
android:id="@+id/login_sign_google"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<com.facebook.login.widget.LoginButton
android:layout_width="match_parent"
android:layout_height="wrap_content" />
最简单的解决方案是将这些按钮添加到布局中,使其visibility
- GONE
并添加具有所需样式的自定义按钮。
在单击时,只需传递如下所示的click事件:
loginFacebookStyledButton.setOnClickListener {
loginFacebookActualInvisibleButton.performClick()
}
使用Google登录后,我认为您不需要SignInButton
简单样式的按钮即可完成工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.