Cách 1: Sử dụng hình ảnh
Bước 1: Để có 3 trạng thái của button gồm: 
   - pressed (khi bấm): 
   - focused (khi dùng phím di chuyển vào button thì button đó sẽ rơi vào trạng thái focus):
   - normal (bình thường) :

--> Chúng ta chuẩn bị 3 hình ảnh mô tả 3 trạng thái này của button này:  button_pressed.png, button_focused.png, button_normal.png và bỏ vào thư mục res/drawable trong dự án(nếu không có thư mục này thì tự tạo thêm)


   - Download hình ảnh button ở đây link: https://drive.google.com/file/d/0B8tAQ0_sJKCSYXlST0N5b19Oa0k/view?usp=sharing

   - Hoặc các bạn có thể dùng link website sau để thiết kế trực tiếp từng button sau đó download hình ảnh button link: http://dabuttonfactory.com/

Bước 2: Tạo tệp tin custom_button.xml trong mục res/drawable(nếu không có thư mục này thì tự tạo thêm), Code:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/button_pressed"
          android:state_pressed="true" />
    <item android:drawable="@drawable/button_focused"
          android:state_focused="true" />
    <item android:drawable="@drawable/button_normal" />
</selector>

--> Đây gọi là một tệp tin trạng thái (file state) của button.

Bước 3: Vào tệp tin thiết kế layout activity_main.xml thêm vào 1 button:
Code:
       <Button
           android:id="@+id/button"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_gravity="center"
           android:background="@drawable/custom_button"
           android:text="Đăng Nhập" />

Kết quả:  -->
                   
Ở trạng thái normal                                                            Ở trạng thái pressed     


                                                     
                                                     

Cách 2:


Cách 3: