Merge "Increase touch target for suggestion close button." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d483041078
@@ -47,16 +47,23 @@
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="6dp" />
|
||||
|
||||
<ImageView
|
||||
|
||||
<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:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:contentDescription="@string/dlg_close"
|
||||
android:src="@drawable/ic_suggestion_close_button"/>
|
||||
</FrameLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
@@ -44,16 +44,23 @@
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="8dp" />
|
||||
|
||||
<ImageView
|
||||
<FrameLayout
|
||||
android:id="@+id/close_button"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:gravity="end|top"
|
||||
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:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:contentDescription="@string/dlg_close"
|
||||
android:src="@drawable/ic_suggestion_close_button"/>
|
||||
</FrameLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
@@ -46,16 +46,22 @@
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="6dp" />
|
||||
|
||||
<ImageView
|
||||
<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:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:contentDescription="@string/dlg_close"
|
||||
android:src="@drawable/ic_suggestion_close_button"/>
|
||||
</FrameLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
@@ -140,7 +140,7 @@ public class SuggestionAdapter extends RecyclerView.Adapter<DashboardItemHolder>
|
||||
mConfig.setCardLayout(holder, position);
|
||||
}
|
||||
|
||||
final ImageView closeButton = holder.itemView.findViewById(R.id.close_button);
|
||||
final View closeButton = holder.itemView.findViewById(R.id.close_button);
|
||||
if (closeButton != null) {
|
||||
closeButton.setOnClickListener(v -> {
|
||||
mSuggestionFeatureProvider.dismissSuggestion(
|
||||
|
Reference in New Issue
Block a user