Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove default button style in android

Tags:

java

android

enter image description here

Above is my button and i want to remove default shadow also, I have successfully removed background but shadow is still there below is my xml code

<Button
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/create_account"
    android:id="@+id/buttonCreateAccount"
    android:layout_gravity="center_horizontal"
    android:background="@null"
    style=""
    android:shadowRadius="@null"
    android:drawableBottom="@null"
/>
like image 869
Dhiral Pandya Avatar asked Feb 08 '15 07:02

Dhiral Pandya


1 Answers

use following style

style="?android:attr/borderlessButtonStyle" 
like image 52
chris muiruri Avatar answered Sep 27 '22 17:09

chris muiruri