diff options
Diffstat (limited to 'data/res/layout/notification_template_right_icon.xml')
-rw-r--r-- | data/res/layout/notification_template_right_icon.xml | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/data/res/layout/notification_template_right_icon.xml b/data/res/layout/notification_template_right_icon.xml index 0b97e45b..ee416ad3 100644 --- a/data/res/layout/notification_template_right_icon.xml +++ b/data/res/layout/notification_template_right_icon.xml @@ -14,30 +14,29 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License --> - -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" +<!-- The view only has 8dp padding at the end instead of notification_content_margin_end, + since the reply icon has an inset of 8dp and we want it to visually start at the start of the + icon. --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/right_icon_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_content_margin_top" + android:layout_marginEnd="8dp" android:layout_gravity="top|end"> <ImageView android:id="@+id/right_icon" android:layout_width="@dimen/notification_right_icon_size" android:layout_height="@dimen/notification_right_icon_size" android:layout_gravity="top|end" - android:layout_marginEnd="@dimen/notification_content_margin_end" + android:layout_marginEnd="8dp" android:scaleType="centerCrop" android:importantForAccessibility="no" /> - <ImageButton android:id="@+id/reply_icon_action" - android:layout_width="16dp" - android:layout_height="16dp" - android:layout_gravity="top|end" - android:layout_marginTop="27dp" - android:layout_marginEnd="16dp" - android:background="@drawable/notification_reply_background" - android:src="@drawable/ic_reply_notification" - android:scaleType="center" - android:contentDescription="@string/notification_reply_button_accessibility" - visiblity="gone"/> -</FrameLayout> + <ImageView android:id="@+id/reply_icon_action" + android:layout_width="@dimen/notification_right_icon_size" + android:layout_height="@dimen/notification_right_icon_size" + android:layout_gravity="top|end" + android:contentDescription="@string/notification_reply_button_accessibility" + android:scaleType="centerCrop" + android:src="@drawable/ic_reply_notification"/> +</LinearLayout> |