Replace the device PNGs with vector drawables.
Before Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 560 B |
Before Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 377 B |
Before Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 304 B |
Before Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 790 B |
Before Width: | Height: | Size: 693 B |
Before Width: | Height: | Size: 611 B |
Before Width: | Height: | Size: 439 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 843 B |
Before Width: | Height: | Size: 433 B |
5
res/drawable/ic_device_laptop_32dp.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="32dp" android:tint="?attr/colorControlNormal"
|
||||||
|
android:viewportHeight="24" android:viewportWidth="24"
|
||||||
|
android:width="32dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M20,18c1.1,0 2,-0.9 2,-2V6c0,-1.1 -0.9,-2 -2,-2H4C2.9,4 2,4.9 2,6v10c0,1.1 0.9,2 2,2H0v2h24v-2H20zM4,6h16v10H4V6z"/>
|
||||||
|
</vector>
|
5
res/drawable/ic_device_phone_32dp.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="32dp" android:tint="?attr/colorControlNormal"
|
||||||
|
android:viewportHeight="24" android:viewportWidth="24"
|
||||||
|
android:width="32dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M16,1L8,1C6.34,1 5,2.34 5,4v16c0,1.66 1.34,3 3,3h8c1.66,0 3,-1.34 3,-3L19,4c0,-1.66 -1.34,-3 -3,-3zM14,21h-4v-1h4v1zM17.25,18L6.75,18L6.75,4h10.5v14z"/>
|
||||||
|
</vector>
|
5
res/drawable/ic_device_tablet_32dp.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="32dp" android:tint="?attr/colorControlNormal"
|
||||||
|
android:viewportHeight="24" android:viewportWidth="24"
|
||||||
|
android:width="32dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M21,4L3,4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h18c1.1,0 1.99,-0.9 1.99,-2L23,6c0,-1.1 -0.9,-2 -2,-2zM19,18L5,18L5,6h14v12z"/>
|
||||||
|
</vector>
|
5
res/drawable/ic_device_tv_32dp.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="32dp" android:tint="?attr/colorControlNormal"
|
||||||
|
android:viewportHeight="24" android:viewportWidth="24"
|
||||||
|
android:width="32dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M21,3L3,3c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h5v2h8v-2h5c1.1,0 1.99,-0.9 1.99,-2L23,5c0,-1.1 -0.9,-2 -2,-2zM21,17L3,17L3,5h18v12z"/>
|
||||||
|
</vector>
|
@ -21,7 +21,7 @@
|
|||||||
android:layout_marginLeft="12dp"
|
android:layout_marginLeft="12dp"
|
||||||
android:layout_marginStart="12dp"
|
android:layout_marginStart="12dp"
|
||||||
android:contentDescription="@string/device_icon_description"
|
android:contentDescription="@string/device_icon_description"
|
||||||
android:src="@drawable/ic_device_laptop"
|
app:srcCompat="@drawable/ic_device_laptop_32dp"
|
||||||
app:tint="?attr/colorControlNormal"/>
|
app:tint="?attr/colorControlNormal"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -188,16 +188,16 @@ public class Device implements BaseLink.PacketReceiver {
|
|||||||
int drawableId;
|
int drawableId;
|
||||||
switch (deviceType) {
|
switch (deviceType) {
|
||||||
case Phone:
|
case Phone:
|
||||||
drawableId = R.drawable.ic_device_phone;
|
drawableId = R.drawable.ic_device_phone_32dp;
|
||||||
break;
|
break;
|
||||||
case Tablet:
|
case Tablet:
|
||||||
drawableId = R.drawable.ic_device_tablet;
|
drawableId = R.drawable.ic_device_tablet_32dp;
|
||||||
break;
|
break;
|
||||||
case Tv:
|
case Tv:
|
||||||
drawableId = R.drawable.ic_device_tv;
|
drawableId = R.drawable.ic_device_tv_32dp;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
drawableId = R.drawable.ic_device_laptop;
|
drawableId = R.drawable.ic_device_laptop_32dp;
|
||||||
}
|
}
|
||||||
return ContextCompat.getDrawable(context, drawableId);
|
return ContextCompat.getDrawable(context, drawableId);
|
||||||
}
|
}
|
||||||
|