OSDN Git Service

Add ripple to navigation bar button
authorVictor Chan <victorchan@google.com>
Wed, 20 Jan 2016 02:56:57 +0000 (18:56 -0800)
committerVictor Chan <victorchan@google.com>
Wed, 20 Jan 2016 20:11:51 +0000 (12:11 -0800)
Change-Id: I3af5bf8e49f244987737be1df286dc52b61ff0f8

packages/SystemUI/res/layout/car_navigation_button.xml

index 87c8f04..479f18d 100644 (file)
@@ -22,7 +22,7 @@
         android:layout_height="match_parent"
         android:layout_width="wrap_content"
         android:orientation="horizontal"
-        android:gravity="center">
+        android:background="?android:attr/selectableItemBackground">
     <com.android.keyguard.AlphaOptimizedImageButton
             android:id="@+id/car_nav_button_icon"
             android:layout_height="match_parent"