Button text not with multiple lines

android:singleLine="true" is deprecated. Use this instead:

android:maxLines="1"

It is probably because you have used the weight property for the buttons.

android:layout_weight="1"

Remove the weight in the buttons and set

android:layout_width="wrap_content" 

for the buttons. I think that should do it.

please tell me if it works.


edit your button property..

<Button 
        android:id="@+id/neutralButton"
        android:layout_width="wrap_content"
        android:background="@drawable/button"
        android:textColor="#FFFFFF"         
        android:textSize="10dp"                
        android:layout_gravity="center_horizontal"
        android:singleLine="true" />