Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the height of the 'Log in with Facebook' button?

I already tried several answers I could find but none of them worked with the latest Facebook Android SDK version 4.0.

How can I change the layout height with the latest SDK?

like image 501
Steffen Avatar asked Apr 12 '15 12:04

Steffen


People also ask

What is the log back in button on Facebook?

The Login button is a simple way to trigger the Facebook Login process on your website or web app. If someone hasn't logged into your app yet, they'll see this button, and clicking it will open a Login dialog, starting the login flow.

What is the login button?

When inserted properly, a login button appears on the Web page. Clicking the login button opens a login window in which a user enters the username and password.


1 Answers

Just set paddingTop and paddingBottom. It works for me.

<com.facebook.login.widget.LoginButton         android:id="@+id/login_facebook_button"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:paddingTop="15dp"         android:paddingBottom="15dp"         android:layout_marginRight="30dp"         android:layout_marginLeft="30dp"/> 
like image 160
Tiago Martins Avatar answered Sep 18 '22 14:09

Tiago Martins