- wrap the close button icon view in a bigger layout to increase the overall touch area. Fixes: 74220173 Test: manual Change-Id: I45beadf3cfcc6ed1a8a16e6dcb9b8452e1edd78e
		
			
				
	
	
		
			94 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			94 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="utf-8"?>
 | 
						|
<!-- Copyright (C) 2017 The Android Open Source Project
 | 
						|
 | 
						|
     Licensed under the Apache License, Version 2.0 (the "License");
 | 
						|
     you may not use this file except in compliance with the License.
 | 
						|
     You may obtain a copy of the License at
 | 
						|
 | 
						|
          http://www.apache.org/licenses/LICENSE-2.0
 | 
						|
 | 
						|
     Unless required by applicable law or agreed to in writing, software
 | 
						|
     distributed under the License is distributed on an "AS IS" BASIS,
 | 
						|
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
						|
     See the License for the specific language governing permissions and
 | 
						|
     limitations under the License.
 | 
						|
-->
 | 
						|
 | 
						|
<android.support.v7.widget.CardView
 | 
						|
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
						|
    xmlns:app="http://schemas.android.com/apk/res-auto"
 | 
						|
    android:id="@+id/suggestion_card"
 | 
						|
    android:layout_width="match_parent"
 | 
						|
    android:layout_height="wrap_content"
 | 
						|
    android:layout_marginStart="16dp"
 | 
						|
    android:layout_marginEnd="16dp"
 | 
						|
    app:cardPreventCornerOverlap="false"
 | 
						|
    app:cardUseCompatPadding="true"
 | 
						|
    app:cardElevation="2dp"
 | 
						|
    app:cardCornerRadius="@dimen/suggestion_card_corner_radius">
 | 
						|
 | 
						|
    <LinearLayout
 | 
						|
        android:layout_width="match_parent"
 | 
						|
        android:layout_height="wrap_content"
 | 
						|
        android:minHeight="112dp"
 | 
						|
        android:paddingBottom="8dp"
 | 
						|
        android:orientation="vertical">
 | 
						|
 | 
						|
        <RelativeLayout
 | 
						|
            android:layout_width="match_parent"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:orientation="horizontal">
 | 
						|
 | 
						|
            <ImageView
 | 
						|
                android:id="@android:id/icon"
 | 
						|
                android:layout_width="@dimen/suggestion_card_icon_size"
 | 
						|
                android:layout_height="@dimen/suggestion_card_icon_size"
 | 
						|
                style="@style/SuggestionCardIcon"
 | 
						|
                android:layout_marginTop="16dp"
 | 
						|
                android:layout_marginBottom="6dp" />
 | 
						|
 | 
						|
 | 
						|
            <FrameLayout
 | 
						|
                android:id="@+id/close_button"
 | 
						|
                android:layout_width="48dp"
 | 
						|
                android:layout_height="48dp"
 | 
						|
                android:layout_alignParentEnd="true"
 | 
						|
                android:paddingTop="8dp"
 | 
						|
                android:paddingEnd="8dp"
 | 
						|
                android:orientation="horizontal"
 | 
						|
                android:contentDescription="@string/dlg_close">
 | 
						|
                <ImageView
 | 
						|
                    android:layout_width="18dp"
 | 
						|
                    android:layout_height="18dp"
 | 
						|
                    android:layout_gravity="end|top"
 | 
						|
                    android:alpha="0.54"
 | 
						|
                    android:src="@drawable/ic_suggestion_close_button"/>
 | 
						|
            </FrameLayout>
 | 
						|
 | 
						|
        </RelativeLayout>
 | 
						|
 | 
						|
        <TextView
 | 
						|
            android:id="@android:id/title"
 | 
						|
            android:layout_width="match_parent"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            style="@style/SuggestionCardText"
 | 
						|
            android:layout_marginStart="12dp"
 | 
						|
            android:layout_marginEnd="12dp"
 | 
						|
            android:singleLine="true"
 | 
						|
            android:textAppearance="@style/TextAppearance.SuggestionTitle"
 | 
						|
            android:fadingEdge="horizontal" />
 | 
						|
 | 
						|
        <TextView
 | 
						|
            android:id="@android:id/summary"
 | 
						|
            android:layout_width="match_parent"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            style="@style/SuggestionCardText"
 | 
						|
            android:layout_marginStart="12dp"
 | 
						|
            android:layout_marginEnd="12dp"
 | 
						|
            android:singleLine="true"
 | 
						|
            android:textAppearance="@style/TextAppearance.SuggestionSummary" />
 | 
						|
 | 
						|
    </LinearLayout>
 | 
						|
 | 
						|
</android.support.v7.widget.CardView>
 |