在Android应用程序中自定义Facebook登录按钮 [英] Customizing Facebook login button in Android Application

查看:273
本文介绍了在Android应用程序中自定义Facebook登录按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Android应用程序,其中我已经实现了facebook登录按钮。我的登录屏幕包括注册的一些字段以及注册Facebook和谷歌+的选项。一切正常,但我无法按照高度调整按钮的大小。当我改变该按钮的高度时,它不会改变,并保持包装内容格式,但宽度正在改变。在以前的任何问题中,我无法找到解决这个问题的好方法。任何人都可以帮助我,如果需要更多的细节,请问。
PS-我在登录屏幕中使用线性布局。

解决方案

如果您想更改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"

这篇关于在Android应用程序中自定义Facebook登录按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆