且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Android应用程序中自定义Facebook登录按钮

更新时间:2023-12-04 22:46:28

如果您想更改Facebook登录的自定义文本..



转到该图书馆项目,然后转到string.xml



你会发现这样的东西

 < string name =com_facebook_loginview_log_in_button_long>用facebook登录< / string> 

将此替换为您的自定义文本



对于高度不一致的Facebook我做了这样的事情

  android:paddingTop =20dp
android:paddingBottom = 20dp


I am working on an android application in which I have implemented facebook login button.My login screen consists of some fields for sign up along with option of signing up with facebook and google+. Everything is working fine but I am unable to resize my button in terms of height. When I am changing my height of that button it doesn't change and remain in wrap content format, but width is changing. I am unable to find good solution to this problem on any of the previous questions . Can anyone please help me, if any additional detail is needed then please ask. PS- I am using linear layout in my login screen.

If you wanna change custom text of Facebook Login ..

Go to that facebook library project And go to string.xml

you will find something like this

<string name="com_facebook_loginview_log_in_button_long">Log in with facebook </string>

Replace this with your custom text

For Height inconsistancy of facebook i had done something like this

android:paddingTop="20dp"
android:paddingBottom="20dp"