I have the following layout
<?xml version="1.0" encoding="utf-8"?>
<Button
android:id="@+id/sign_in"
style="@style/ButtonText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_button_green"
android:text="@string/signin_via_email"
android:textSize="15sp"
android:typeface="sans" />
Now the button i dont really want to fit the whole width rather i want a margin of 10dp from the left and 10dp from the right. I have set the padding and layout_marginLeft and right attributes but they dont work. Any help ?
Kind Regards
<Button
style="@style/ButtonText"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:id="@+id/btnOk"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="OK" />
I added
android:padding="10dp"
to
input.xml
..and it worked!
(I using SoftKeyboard source code and also have the same problem)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With