Replace phone link PNGs with vector drawables.
Before Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 168 B |
Before Width: | Height: | Size: 412 B |
Before Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 323 B |
Before Width: | Height: | Size: 753 B |
Before Width: | Height: | Size: 420 B |
5
res/drawable/ic_phonelink_36dp.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<vector android:height="36dp" android:tint="?attr/colorControlNormal"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="36dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M4,6h18L22,4L4,4c-1.1,0 -2,0.9 -2,2v11L0,17v3h14v-3L4,17L4,6zM23,8h-6c-0.55,0 -1,0.45 -1,1v10c0,0.55 0.45,1 1,1h6c0.55,0 1,-0.45 1,-1L24,9c0,-0.55 -0.45,-1 -1,-1zM22,17h-4v-7h4v7z"/>
|
||||
</vector>
|
5
res/drawable/ic_phonelink_off_36dp.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<vector android:height="36dp" android:tint="?attr/colorControlNormal"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="36dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M22,6V4H6.82l2,2H22zM1.92,1.65L0.65,2.92l1.82,1.82C2.18,5.08 2,5.52 2,6v11H0v3h17.73l2.35,2.35 1.27,-1.27L3.89,3.62 1.92,1.65zM4,6.27L14.73,17H4V6.27zM23,8h-6c-0.55,0 -1,0.45 -1,1v4.18l2,2V10h4v7h-2.18l3,3H23c0.55,0 1,-0.45 1,-1V9c0,-0.55 -0.45,-1 -1,-1z"/>
|
||||
</vector>
|
@ -19,7 +19,7 @@
|
||||
android:keyWidth="40%" />
|
||||
<Key
|
||||
android:codes="3"
|
||||
android:keyIcon="@drawable/ic_phonelink_white_36dp"
|
||||
android:keyIcon="@drawable/ic_phonelink_36dp"
|
||||
android:keyWidth="20%" />-->
|
||||
</Row>
|
||||
</Keyboard>
|
||||
|
@ -74,8 +74,8 @@ public class RemoteKeyboardService
|
||||
List<Keyboard.Key> keys = currentKeyboard.getKeys();
|
||||
boolean connected = RemoteKeyboardPlugin.isConnected();
|
||||
// Log.d("RemoteKeyboardService", "Updating keyboard connection icon, connected=" + connected);
|
||||
int disconnectedIcon = R.drawable.ic_phonelink_off_white_36dp;
|
||||
int connectedIcon = R.drawable.ic_phonelink_white_36dp;
|
||||
int disconnectedIcon = R.drawable.ic_phonelink_off_36dp;
|
||||
int connectedIcon = R.drawable.ic_phonelink_36dp;
|
||||
int statusKeyIdx = 3;
|
||||
keys.get(statusKeyIdx).icon = ContextCompat.getDrawable(this, connected ? connectedIcon : disconnectedIcon);
|
||||
inputView.invalidateKey(statusKeyIdx);
|
||||
|