From 96a49f0b7a897c1b79b39ce4637c4cc0d7d4bb23 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Mon, 3 Apr 2017 18:30:29 +0200 Subject: [PATCH] Fix alignment of action icons and enable proper (vector) scaling. --- app/src/main/res/layout/device_itemv2.xml | 46 ++++++++++++----------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/app/src/main/res/layout/device_itemv2.xml b/app/src/main/res/layout/device_itemv2.xml index f5c8fe30f..0fc4dd349 100644 --- a/app/src/main/res/layout/device_itemv2.xml +++ b/app/src/main/res/layout/device_itemv2.xml @@ -111,18 +111,16 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/device_image" - android:layout_marginBottom="4dp" - android:layout_marginStart="4dp" - android:layout_marginEnd="0dp" - android:layout_marginTop="4dp" - android:padding="4dp" - android:minWidth="48dp" + android:layout_alignParentStart="true" + android:layout_margin="4dp" android:orientation="vertical"> @@ -144,7 +142,6 @@ android:layout_height="wrap_content" android:layout_below="@id/device_image" android:layout_margin="4dp" - android:padding="4dp" android:layout_toEndOf="@id/device_battery_status_box" android:gravity="center_vertical" android:minWidth="36dp" @@ -154,10 +151,12 @@ android:id="@+id/device_action_fetch_activity" android:layout_width="40dp" android:layout_height="40dp" + android:padding="4dp" + android:background="?android:attr/selectableItemBackground" android:clickable="true" android:contentDescription="@string/controlcenter_fetch_activity_data" + android:scaleType="fitXY" android:tint="@color/secondarytext" - android:background="?android:attr/selectableItemBackground" card_view:srcCompat="@drawable/ic_action_fetch_activity_data" /> + android:clickable="true" + android:contentDescription="@string/controlcenter_start_activitymonitor" + android:padding="4dp" + android:scaleType="fitXY" + android:tint="@color/secondarytext" + card_view:srcCompat="@drawable/ic_activity_graphs" />