xml - Can't change the height of my Facebook login button (Android) -


i'm trying change dimensions of facebook login button - i'm able change width of button , reason height stays same.

<com.facebook.login.widget.loginbutton     xmlns:facebook="http://schemas.android.com/apk/res-auto"     facebook:com_facebook_login_text="log in facebook"     android:id="@+id/login_button"     android:layout_width="240dp"     android:layout_height="50dp"     android:layout_gravity="center_horizontal"/> 

any ideas why?

i have tried putting button in own linearlayout , setting both width , height match_parent again height remains constant.

grateful help!

for facebook sdk v4.x (or rather using separate xml style)

the height of button decided padding , textsize.

so if want increase button size, this

<com.facebook.login.widget.loginbutton xmlns:facebook="http://schemas.android.com/apk/res-auto" facebook:com_facebook_login_text="log in facebook" android:id="@+id/login_button"  android:textsize="15sp" android:paddingtop="15sp" <!--increase more until matches ur requirement --> android:paddingbottom="15sp"> 

hope helps!!


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -