Merge "Increase touch target for suggestion close button." into pi-dev am: d483041078
am: 2a9fe0e91d
Change-Id: I6d1ee50345ae45ab48162b017197e1556621fcaa
This commit is contained in:
@@ -47,16 +47,23 @@
|
|||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:layout_marginBottom="6dp" />
|
android:layout_marginBottom="6dp" />
|
||||||
|
|
||||||
<ImageView
|
|
||||||
|
<FrameLayout
|
||||||
android:id="@+id/close_button"
|
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_width="18dp"
|
||||||
android:layout_height="18dp"
|
android:layout_height="18dp"
|
||||||
|
android:layout_gravity="end|top"
|
||||||
android:alpha="0.54"
|
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"/>
|
android:src="@drawable/ic_suggestion_close_button"/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
@@ -44,16 +44,23 @@
|
|||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:layout_marginBottom="8dp" />
|
android:layout_marginBottom="8dp" />
|
||||||
|
|
||||||
<ImageView
|
<FrameLayout
|
||||||
android:id="@+id/close_button"
|
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_width="18dp"
|
||||||
android:layout_height="18dp"
|
android:layout_height="18dp"
|
||||||
|
android:layout_gravity="end|top"
|
||||||
android:alpha="0.54"
|
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"/>
|
android:src="@drawable/ic_suggestion_close_button"/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
@@ -46,16 +46,22 @@
|
|||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:layout_marginBottom="6dp" />
|
android:layout_marginBottom="6dp" />
|
||||||
|
|
||||||
<ImageView
|
<FrameLayout
|
||||||
android:id="@+id/close_button"
|
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_width="18dp"
|
||||||
android:layout_height="18dp"
|
android:layout_height="18dp"
|
||||||
|
android:layout_gravity="end|top"
|
||||||
android:alpha="0.54"
|
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"/>
|
android:src="@drawable/ic_suggestion_close_button"/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
@@ -140,7 +140,7 @@ public class SuggestionAdapter extends RecyclerView.Adapter<DashboardItemHolder>
|
|||||||
mConfig.setCardLayout(holder, position);
|
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) {
|
if (closeButton != null) {
|
||||||
closeButton.setOnClickListener(v -> {
|
closeButton.setOnClickListener(v -> {
|
||||||
mSuggestionFeatureProvider.dismissSuggestion(
|
mSuggestionFeatureProvider.dismissSuggestion(
|
||||||
|
Reference in New Issue
Block a user